Module: Dynamoid::Dirty::ClassMethods

Defined in:
lib/dynamoid/dirty.rb

Instance Method Summary collapse

Instance Method Details

#from_databaseObject



39
40
41
# File 'lib/dynamoid/dirty.rb', line 39

def from_database(*)
  super.tap(&:clear_changes_information)
end

#update_fieldsObject



27
28
29
30
31
# File 'lib/dynamoid/dirty.rb', line 27

def update_fields(*)
  super.tap do |model|
    model.clear_changes_information if model
  end
end

#upsertObject



33
34
35
36
37
# File 'lib/dynamoid/dirty.rb', line 33

def upsert(*)
  super.tap do |model|
    model.clear_changes_information if model
  end
end