Class: DirtyHistoryRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/dirty_history/dirty_history_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#performing_manual_updateObject

Returns the value of attribute performing_manual_update.



31
32
33
# File 'lib/dirty_history/dirty_history_record.rb', line 31

def performing_manual_update
  @performing_manual_update
end

Instance Method Details

#action_timestampObject



44
45
46
47
48
# File 'lib/dirty_history/dirty_history_record.rb', line 44

def action_timestamp                           
  # use revised_created_at field to update the timestamp for
  # the dirty history action while retaining data integrity
  self[:revised_created_at] || self[:created_at]
end