1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Add splat lost in merge, it was fixed elabs/pundit#291, closes elabs/pundit#353

This commit is contained in:
Matthew Dodds 2016-04-22 17:11:16 -04:00
parent 146d7cbe76
commit 860edd6e1e

View file

@ -243,7 +243,7 @@ protected
else
"permitted_attributes"
end
params.require(param_key).permit(policy.public_send(method_name))
params.require(param_key).permit(*policy.public_send(method_name))
end
# Cache of policies. You should not rely on this method.