Hey thanks for this. Is it actually a bug here that you can write a spec for?
That being said, I'm not so sure this is a great idea to call update_attribute (no bang) from inside a bang method (#{value}!), since it won't throw an exception and update_attribute skips validations, whereas update_attributes! does not.
@destinyd I haven't heard back from you on this issue in over 12 months, so I'm going to assume it's a non-issue. Feel free to open this again though if there is any ongoing problems :smile:
Hey thanks for this. Is it actually a bug here that you can write a spec for?
That being said, I'm not so sure this is a great idea to call
update_attribute
(no bang) from inside a bang method (#{value}!
), since it won't throw an exception andupdate_attribute
skips validations, whereasupdate_attributes!
does not.