File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
actionpack/lib/action_controller Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,14 @@ class Railtie < Rails::Railtie # :nodoc:
32
32
ActionController ::Parameters . always_permitted_parameters =
33
33
app . config . action_controller . always_permitted_parameters
34
34
end
35
- ActionController ::Parameters . action_on_unpermitted_parameters = options . action_on_unpermitted_parameters ||
36
- ( Rails . env . test? || Rails . env . development? ) ? :log : false
35
+
36
+ action_on_unpermitted_parameters = options . action_on_unpermitted_parameters
37
+
38
+ if action_on_unpermitted_parameters . nil?
39
+ action_on_unpermitted_parameters = ( Rails . env . test? || Rails . env . development? ) ? :log : false
40
+ end
41
+
42
+ ActionController ::Parameters . action_on_unpermitted_parameters = action_on_unpermitted_parameters
37
43
end
38
44
end
39
45
You can’t perform that action at this time.
0 commit comments