mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #17692 from robertomiranda/patch-1
_will_change! method is not needed any more [ci skip]
This commit is contained in:
commit
532e4808ff
1 changed files with 0 additions and 5 deletions
|
@ -103,11 +103,6 @@ profile.settings # => {"color"=>"blue", "resolution"=>"800x600"}
|
|||
|
||||
profile.settings = {"color" => "yellow", "resolution" => "1280x1024"}
|
||||
profile.save!
|
||||
|
||||
## you need to call _will_change! if you are editing the store in place
|
||||
profile.settings["color"] = "green"
|
||||
profile.settings_will_change!
|
||||
profile.save!
|
||||
```
|
||||
|
||||
### JSON
|
||||
|
|
Loading…
Reference in a new issue