lib/active_model/dirty.rb in activemodel-6.1.4.7 vs lib/active_model/dirty.rb in activemodel-6.1.5

- old
+ new

@@ -138,10 +138,10 @@ end @mutations_from_database = nil end def as_json(options = {}) # :nodoc: - options[:except] = [options[:except], "mutations_from_database"].flatten + options[:except] = [*options[:except], "mutations_from_database", "mutations_before_last_save"] super(options) end # Clears dirty data and moves +changes+ to +previous_changes+ and # +mutations_from_database+ to +mutations_before_last_save+ respectively.