Module: SeparateHistory::History

Extended by:
ActiveSupport::Concern
Defined in:
lib/separate_history/history.rb

Instance Method Summary collapse

Instance Method Details

#manipulated?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/separate_history/history.rb', line 9

def manipulated?
  return false unless respond_to?(:history_created_at) && respond_to?(:history_updated_at)

  history_updated_at.to_i != history_created_at.to_i
end