Skip to content

Commit 8159d04

Browse files
committed
Fix a typo in the code snippet
1 parent bd8acb7 commit 8159d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rails/allow-list-params-anywhere-with-strong-params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BookTitleUpdater
1515
def self.run(data)
1616
params = ActionController::Parameters.new(data).permit(*ALLOW_LIST)
1717

18-
Book.find(params[:id]).update!(params)
18+
Book.find(data[:id]).update!(params)
1919
end
2020
end
2121
```

0 commit comments

Comments
 (0)