You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've hit a problem on a project where the functionality of ActiveModel::Dirty has changed, such that the following no longer works for a Her-backed model:
foo = SomeModel.find(1)
foo.title # returns a string
foo.title = 'bar'
foo.restore_title! #should restore the title; actually fails because foo.title is a String and Rails 6 expects it to respond to `original_value`.
Haven't done enough digging to determine the best course of action for fixing, yet.
The text was updated successfully, but these errors were encountered:
We've hit a problem on a project where the functionality of
ActiveModel::Dirty
has changed, such that the following no longer works for a Her-backed model:Haven't done enough digging to determine the best course of action for fixing, yet.
The text was updated successfully, but these errors were encountered: