aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-06-23 12:09:35 -0300
committerGitHub <noreply@github.com>2016-06-23 12:09:35 -0300
commite8c21ff645eefb889acd7799bd12c9757cd8fd8c (patch)
treeacdf6aadf8297e1942f33e6c358f6369112a8109 /actionpack/lib
parentfa95c8b8149fe293655b6ac7c9980258c109e2db (diff)
parent19eec522978348bcae8f733ee3dcdcffd5d4a2be (diff)
downloadrails-e8c21ff645eefb889acd7799bd12c9757cd8fd8c.tar.gz
rails-e8c21ff645eefb889acd7799bd12c9757cd8fd8c.tar.bz2
rails-e8c21ff645eefb889acd7799bd12c9757cd8fd8c.zip
Merge pull request #25478 from maclover7/jm-permitted-false
`params.permitted?` is false by default
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb
index 6b53f90c14..b326695ce2 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -106,6 +106,8 @@ module ActionController
# params["key"] # => "value"
class Parameters
cattr_accessor :permit_all_parameters, instance_accessor: false
+ self.permit_all_parameters = false
+
cattr_accessor :action_on_unpermitted_parameters, instance_accessor: false
delegate :keys, :key?, :has_key?, :values, :has_value?, :value?, :empty?, :include?,