Fixed bug introduced in #24519. Makes build green again

This commit is contained in:
Bogdan Gusiev 2016-04-13 21:13:33 +03:00
parent e25d7a78b5
commit 80b9e5d7bd

@ -178,7 +178,7 @@ def changed_attributes
# Handles <tt>*_changed?</tt> for +method_missing+.
def attribute_changed?(attr, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) # :nodoc:
changes_include?(attr) &&
!!changes_include?(attr) &&
(to == OPTION_NOT_GIVEN || to == __send__(attr)) &&
(from == OPTION_NOT_GIVEN || from == changed_attributes[attr])
end