Skip to content

Commit

Permalink
Be explicit about hash
Browse files Browse the repository at this point in the history
  • Loading branch information
brendon committed Mar 6, 2024
1 parent 6b28782 commit de836cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Firstly you need to allow both scalar and nested Strong Parameters for the `posi

```ruby
def item_params
params.require(:item).permit :name, :position, position: [:before]
params.require(:item).permit :name, :position, { position: :before }
end
```

Expand Down

0 comments on commit de836cf

Please sign in to comment.