diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-01-17 17:12:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 17:12:57 -0500 |
commit | e65a3a0ce585b1fbcd35872616717595d6950fca (patch) | |
tree | f1373015e625acc65fd0997cbf61a2a63e1b6720 /railties/lib/rails/command | |
parent | cc0dd1d371868fe34fba6b58d22a8ba0714d8ae7 (diff) | |
parent | 4d51efe24e461a2a3ed562787308484cd48370c7 (diff) | |
download | rails-e65a3a0ce585b1fbcd35872616717595d6950fca.tar.gz rails-e65a3a0ce585b1fbcd35872616717595d6950fca.tar.bz2 rails-e65a3a0ce585b1fbcd35872616717595d6950fca.zip |
Merge pull request #34954 from rails/rm-remove-5.2-deprecations
Remove all code deprecated in Rails 5.2
Diffstat (limited to 'railties/lib/rails/command')
-rw-r--r-- | railties/lib/rails/command/environment_argument.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/railties/lib/rails/command/environment_argument.rb b/railties/lib/rails/command/environment_argument.rb index 5dc98b113d..fdc5ee92d9 100644 --- a/railties/lib/rails/command/environment_argument.rb +++ b/railties/lib/rails/command/environment_argument.rb @@ -8,23 +8,13 @@ module Rails extend ActiveSupport::Concern included do - argument :environment, optional: true, banner: "environment" - class_option :environment, aliases: "-e", type: :string, desc: "Specifies the environment to run this console under (test/development/production)." end private def extract_environment_option_from_argument - if environment - self.options = options.merge(environment: acceptable_environment(environment)) - - ActiveSupport::Deprecation.warn "Passing the environment's name as a " \ - "regular argument is deprecated and " \ - "will be removed in the next Rails " \ - "version. Please, use the -e option " \ - "instead." - elsif options[:environment] + if options[:environment] self.options = options.merge(environment: acceptable_environment(options[:environment])) else self.options = options.merge(environment: Rails::Command.environment) |