module Mobility::Plugins::ActiveRecord::Dirty::InstanceMethods

Public Instance Methods

attributes_in_database() click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 95
def attributes_in_database
  super.merge(mutations_from_mobility.changed_attributes)
end
changed_attribute_names_to_save() click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 91
def changed_attribute_names_to_save
  super + mutations_from_mobility.changed
end
changes_to_save() click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 87
def changes_to_save
  super.merge(mutations_from_mobility.changes)
end
has_changes_to_save?() click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 100
def has_changes_to_save?
  super || mutations_from_mobility.changed?
end
reload(*) click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 106
def reload(*)
  super.tap do
    @mutations_from_mobility = nil
  end
end
saved_changes() click to toggle source
Calls superclass method
# File lib/mobility/plugins/active_record/dirty.rb, line 83
def saved_changes
  super.merge(mutations_from_mobility.previous_changes)
end