Project

General

Profile

Bug #24585

Behavior of attributed_changed? inside callbacks will change in next rails version

Added by Stephen Benjamin almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Warning from the logs:

2018-08-10T16:47:56 [W|app|] 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. (called from recalculate_errata_status at /home/vagrant/git/katello/app/models/katello/concerns/setting_extensions.rb:14)

Associated revisions

Revision f4d1738d (diff)
Added by Stephen Benjamin almost 2 years ago

fixes #24585 - update setting callback for rails deprecation

History

#1 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7617 added

#2 Updated by Stephen Benjamin almost 2 years ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Jonathon Turel almost 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

Also available in: Atom PDF