Skip to content
Browse files

Merge pull request #12609 from corwinkelly/patch-1

Update workaround for "Outside the Scope of Strong Parameters"
  • Loading branch information...
2 parents dc5070e + 872b3c9 commit f0963a61adcf8ac2d09a88eb3c60339dd1b1f0fc @fxn fxn committed Nov 8, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 guides/source/action_controller_overview.md
View
4 guides/source/action_controller_overview.md
@@ -328,9 +328,7 @@ the job done:
```ruby
def product_params
- params.require(:product).permit(:name).tap do |whitelisted|
- whitelisted[:data] = params[:product][:data]
- end
+ params.require(:product).permit(:name, { data: params[:product][:data].try(:keys) })
end
```

0 comments on commit f0963a6

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