diff options
author | Richard Schneeman <richard.schneeman@gmail.com> | 2015-12-29 14:14:51 -0600 |
---|---|---|
committer | Richard Schneeman <richard.schneeman@gmail.com> | 2015-12-29 14:14:51 -0600 |
commit | cc5ae3e6df90056d0559aeb34e5dde7b505b9aa6 (patch) | |
tree | ff81f0b66d71cffb081cbae80a65dfa9f109589d /actionpack/lib | |
parent | 98927586a8caf2824557aa2ff462ddf22d48008b (diff) | |
parent | ff8a62d1d071500756cd61fcd30fc2984e0fbc26 (diff) | |
download | rails-cc5ae3e6df90056d0559aeb34e5dde7b505b9aa6.tar.gz rails-cc5ae3e6df90056d0559aeb34e5dde7b505b9aa6.tar.bz2 rails-cc5ae3e6df90056d0559aeb34e5dde7b505b9aa6.zip |
Merge pull request #22830 from jcoyne/parameters_include
Add AC::Parameters#include?
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 957aa746c0..7e2745c75a 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -109,7 +109,7 @@ module ActionController cattr_accessor :permit_all_parameters, instance_accessor: false cattr_accessor :action_on_unpermitted_parameters, instance_accessor: false - delegate :keys, :key?, :has_key?, :empty?, :inspect, to: :@parameters + delegate :keys, :key?, :has_key?, :empty?, :include?, :inspect, to: :@parameters # By default, never raise an UnpermittedParameters exception if these # params are present. The default includes both 'controller' and 'action' |