Class: ModelHistoryRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/model_history/model_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.



35
36
37
# File 'lib/model_history/model_history_record.rb', line 35

def performing_manual_update
  @performing_manual_update
end

Instance Method Details

#action_timestampObject



48
49
50
51
52
# File 'lib/model_history/model_history_record.rb', line 48

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