lib/active_model/dirty.rb in activemodel-6.0.2.2 vs lib/active_model/dirty.rb in activemodel-6.0.3.rc1
- old
+ new
@@ -165,10 +165,10 @@
mutations_from_database.changed_attribute_names
end
# Dispatch target for <tt>*_changed?</tt> attribute methods.
def attribute_changed?(attr_name, **options) # :nodoc:
- mutations_from_database.changed?(attr_name.to_s, options)
+ mutations_from_database.changed?(attr_name.to_s, **options)
end
# Dispatch target for <tt>*_was</tt> attribute methods.
def attribute_was(attr_name) # :nodoc:
mutations_from_database.original_value(attr_name.to_s)