From 860edd6e1e05428fd103589de5f44c2e7eec564f Mon Sep 17 00:00:00 2001 From: Matthew Dodds Date: Fri, 22 Apr 2016 17:11:16 -0400 Subject: [PATCH] Add splat lost in merge, it was fixed elabs/pundit#291, closes elabs/pundit#353 --- lib/pundit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pundit.rb b/lib/pundit.rb index f3f7887..ca02d5a 100644 --- a/lib/pundit.rb +++ b/lib/pundit.rb @@ -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.