method
new
rails latest stable - Class:
Rails::Command::EnvironmentArgument
new(...)public
No documentation available.
# 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