mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Fix a typo in the code snippet
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user