Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only check for unpermmited parameters if

action_on_unpermitted_parameters is present
  • Loading branch information...
commit 16e0c8816c4c8a9fb5292278bf5753b026c1105c 1 parent 2d9c401
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/metal/strong_parameters.rb
View
2  actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -251,7 +251,7 @@ def permit(*filters)
end
end
- unpermitted_parameters!(params)
+ unpermitted_parameters!(params) if self.class.action_on_unpermitted_parameters
params.permit!
end

1 comment on commit 16e0c88

@fxn
Owner

:heart:

Please sign in to comment.
Something went wrong with that request. Please try again.