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:
@@ -15,7 +15,7 @@ class BookTitleUpdater
|
|||||||
def self.run(data)
|
def self.run(data)
|
||||||
params = ActionController::Parameters.new(data).permit(*ALLOW_LIST)
|
params = ActionController::Parameters.new(data).permit(*ALLOW_LIST)
|
||||||
|
|
||||||
Book.find(params[:id]).update!(params)
|
Book.find(data[:id]).update!(params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user