diff options
author | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-02-14 16:21:34 -0500 |
---|---|---|
committer | Eileen M. Uchitelle <eileencodes@gmail.com> | 2016-02-14 16:21:34 -0500 |
commit | f432e129a7e70a96f4c0d55fa7152fc010e9ca5d (patch) | |
tree | 44eef7a6d97a039c370eed857d7236ca0457f0bc /actionpack/lib | |
parent | 3c96a6eaa42873147d4be4c753981b7e99a2ba4f (diff) | |
parent | 7433836f9a49acfce95be58606c5855fc5613802 (diff) | |
download | rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.tar.gz rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.tar.bz2 rails-f432e129a7e70a96f4c0d55fa7152fc010e9ca5d.zip |
Merge pull request #23678 from kamipo/remove_deprecated_never_unpermitted_params
Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS`
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index d3382ef296..ad3c765d9e 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -122,16 +122,6 @@ module ActionController cattr_accessor :always_permitted_parameters self.always_permitted_parameters = %w( controller action ) - def self.const_missing(const_name) - return super unless const_name == :NEVER_UNPERMITTED_PARAMS - ActiveSupport::Deprecation.warn(<<-MSG.squish) - `ActionController::Parameters::NEVER_UNPERMITTED_PARAMS` has been deprecated. - Use `ActionController::Parameters.always_permitted_parameters` instead. - MSG - - always_permitted_parameters - end - # Returns a new instance of <tt>ActionController::Parameters</tt>. # Also, sets the +permitted+ attribute to the default value of # <tt>ActionController::Parameters.permit_all_parameters</tt>. |