From 6a20cf4f0532b3e0e397aead76eff28f87135e2d Mon Sep 17 00:00:00 2001 From: "Rahul P. Chaudhari" Date: Mon, 5 Aug 2013 19:10:54 +0530 Subject: Added data for permit array into scalar value --- actionpack/lib/action_controller/metal/strong_parameters.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 44703221f3..b279ef81a9 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -201,6 +201,7 @@ module ActionController # You may declare that the parameter should be an array of permitted scalars # by mapping it to an empty array: # + # params = ActionController::Parameters.new(tags: ['rails', 'parameters']) # params.permit(tags: []) # # You can also use +permit+ on nested parameters, like: -- cgit v1.2.3