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
DEPRECATION WARNING: The behavior of `attribute_changed?` inside of after callbacks will be changing in the next version of Rails. The new return value will reflect the behavior of calling the method after `save` returned (e.g. the opposite of what it returns now). To maintain the current behavior, use `saved_change_to_attribute?` instead.
Hi @CvX, thanks for bringing this to our attention :)
I like to branch based on Rails version in cases like these because that's the determining factor, and the core reason why we're branching. It helps later on when we go to remove support for older Rails versions as we don't then have to figure out when/why the change was implemented.
Would you like to implement this and modify the Appraisals and travis.yml files? (Remember to run appraisal install to update the individual appraisal files.)
Rails 5.1 deprecates ActiveRecord's
changes
and other related methods (e.g.attribute_changed?
). See: rails/rails@16ae3db and rails/rails@ef993d3Here's one of the warnings:
Deprecated use in this gem is here:
https://github.com/swanandp/acts_as_list/blob/master/lib/acts_as_list/active_record/acts/list.rb#L396
It's the only one that popped up in my app, but there may be some other deprecated methods in use here.
What's the strategy for handling such deprecations?
respond_to?("#{position_column}_before_last_save") … else …
?The text was updated successfully, but these errors were encountered: