-
Notifications
You must be signed in to change notification settings - Fork 33
Compatability with Rails 5.2's ActiveModel::Dirty #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jruby could not install this development dependency. And that is all it is, stackprof is a call-stack profiler. Not crucial to successful builds and can be added again by someone who may intend to use it.
* We're now expected to call `#reset_changes`, rather than manipulating `@changed_attributes` directly. * `ActiveRecord::Dirty` now assumes that any object it's included in which has an `@attributes` instance variable is database-backed, and has very specific API requirements for `@attributes` (must be an array of `ActiveModel::Attribute` instances). This conflicts with modis' `@attributes`, so we trivially renamed this to `@modis_attributes` to distinguish them.
1c70188
to
b6118a0
Compare
I incorporated #18, along with my suggestion for support (only actively supported Ruby and Rails versions) into this PR for ease of merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@ileitch @Tonkpils - I will merge this in a few hours unless I hear otherwise from one of you. However, I am not an owner and will now be able to cut a new release with the upgrade. A Otherwise, perhaps @aried3r , who looks to have push rights, can assist? I believe this change will make |
@garettarrowood I'll add you, what's your rubygems.org email address? |
It's garettarrowood@gmail.com . Thanks @ileitch ! |
@garettarrowood Done 👍 |
#reset_changes
, rather than manipulating@changed_attributes
directly.ActiveRecord::Dirty
now assumes that any object it's included in which has an@attributes
instance variable is database-backed, and has very specific API requirements for@attributes
(must be an array ofActiveModel::Attribute
instances). This conflicts with modis'@attributes
, so we trivially renamed this to@modis_attributes
to distinguish them.