removes redundant curly brackets in example code [ci skip]
This commit is contained in:
parent
f0963a61ad
commit
3d5e83fea4
|
@ -328,7 +328,7 @@ the job done:
|
|||
|
||||
```ruby
|
||||
def product_params
|
||||
params.require(:product).permit(:name, { data: params[:product][:data].try(:keys) })
|
||||
params.require(:product).permit(:name, data: params[:product][:data].try(:keys))
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue