Module: Dunlop::AttributeChangesTracking::ClassMethods

Defined in:
app/models/dunlop/attribute_changes_tracking.rb

Instance Method Summary collapse

Instance Method Details

#ignore_attributes_for_last_changeObject



33
34
35
# File 'app/models/dunlop/attribute_changes_tracking.rb', line 33

def ignore_attributes_for_last_change
  %w[id sti_type created_at updated_at notes]
end

#with_last_attribute_changesObject



29
30
31
# File 'app/models/dunlop/attribute_changes_tracking.rb', line 29

def with_last_attribute_changes
  includes(:last_attribute_changes)
end