Skip to content
Browse files

Only check for unpermmited parameters if

action_on_unpermitted_parameters is present
  • Loading branch information...
1 parent 2d9c401 commit 16e0c8816c4c8a9fb5292278bf5753b026c1105c @rafaelfranca rafaelfranca committed Jan 22, 2013
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
Ruby on Rails member
fxn commented on 16e0c88 Jan 22, 2013

❤️

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