We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25d7a7 commit 80b9e5dCopy full SHA for 80b9e5d
activemodel/lib/active_model/dirty.rb
@@ -178,7 +178,7 @@ def changed_attributes
178
179
# Handles <tt>*_changed?</tt> for +method_missing+.
180
def attribute_changed?(attr, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) # :nodoc:
181
- changes_include?(attr) &&
+ !!changes_include?(attr) &&
182
(to == OPTION_NOT_GIVEN || to == __send__(attr)) &&
183
(from == OPTION_NOT_GIVEN || from == changed_attributes[attr])
184
end
0 commit comments