Permalink
Browse files

Merge pull request #271 from rubysolo/allow-private-method

allow permitted_params to be a private method
  • Loading branch information...
2 parents 9f7ed0f + 1836426 commit 0eed41519d7666e9925bd2f3f1bedf8b7de37886 @joelmoss joelmoss committed Apr 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/inherited_resources/base_helpers.rb
View
2 lib/inherited_resources/base_helpers.rb
@@ -312,7 +312,7 @@ def resource_params
# extract attributes from params
def build_resource_params
- parameters = respond_to?(:permitted_params) ? permitted_params : params
+ parameters = respond_to?(:permitted_params, true) ? permitted_params : params
rparams = [parameters[resource_request_name] || parameters[resource_instance_name] || {}]
if without_protection_given?
rparams << without_protection

0 comments on commit 0eed415

Please sign in to comment.