method

new

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: EnvironmentArgument
new(...) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/command/environment_argument.rb, line 16
      def initialize(...)
        super

        @environment_specified = options[:environment].present?

        if !@environment_specified
          self.options = options.merge(environment: Rails::Command.environment)
        elsif !available_environments.include?(options[:environment])
          self.options = options.merge(environment: expand_environment_name(options[:environment]))
        end
      end
Register or log in to add new notes.