method

extract_environment_option_from_argument

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: EnvironmentArgument
extract_environment_option_from_argument(default_environment: Rails::Command.environment) private

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 19
        def extract_environment_option_from_argument(default_environment: Rails::Command.environment)
          if options[:environment]
            self.options = options.merge(environment: acceptable_environment(options[:environment]))
          else
            self.options = options.merge(environment: default_environment)
          end
        end
Register or log in to add new notes.