Skip to content

Commit 80b9e5d

Browse files
committed
Fixed bug introduced in rails#24519. Makes build green again
1 parent e25d7a7 commit 80b9e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/dirty.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def changed_attributes
178178

179179
# Handles <tt>*_changed?</tt> for +method_missing+.
180180
def attribute_changed?(attr, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) # :nodoc:
181-
changes_include?(attr) &&
181+
!!changes_include?(attr) &&
182182
(to == OPTION_NOT_GIVEN || to == __send__(attr)) &&
183183
(from == OPTION_NOT_GIVEN || from == changed_attributes[attr])
184184
end

0 commit comments

Comments
 (0)