Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
7.1.0
-
None
-
None
-
Ruby on Rails
Description
In place modifier function calls such as .gsub! on attributes do not update on save.
> foo = Foo.first
|
> foo.bar
|
"My random value"
|
> foo.bar.gsub!(/random/, '') |
"My value"
|
> foo.changed?
|
false
|
> foo.save # does not changes value of bar to "My value" |
> foo.bar
|
"My value"
|
> foo = Foo.first
|
> foo.bar
|
"My value"
|
Attachments
Issue Links
- duplicates
-
MONGOID-2951 Attributes of container types are not persisted when mutated
-
- Backlog
-