diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-02-08 05:43:57 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-02-15 04:17:24 +0900 |
commit | 7433836f9a49acfce95be58606c5855fc5613802 (patch) | |
tree | 44eef7a6d97a039c370eed857d7236ca0457f0bc /actionpack/lib | |
parent | 3c96a6eaa42873147d4be4c753981b7e99a2ba4f (diff) | |
download | rails-7433836f9a49acfce95be58606c5855fc5613802.tar.gz rails-7433836f9a49acfce95be58606c5855fc5613802.tar.bz2 rails-7433836f9a49acfce95be58606c5855fc5613802.zip |
Remove `const_missing` which fallback to deprecated `NEVER_UNPERMITTED_PARAMS`
`NEVER_UNPERMITTED_PARAMS` is deprecated in Rails 4.2. See #15933.
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>. |