1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Fix a typo in the code snippet

This commit is contained in:
jbranchaud
2020-07-10 16:29:26 -05:00
parent bd8acb7e62
commit 8159d04225

View File

@@ -15,7 +15,7 @@ class BookTitleUpdater
def self.run(data)
params = ActionController::Parameters.new(data).permit(*ALLOW_LIST)
Book.find(params[:id]).update!(params)
Book.find(data[:id]).update!(params)
end
end
```