Module: HeadRow::TimestampExtensions

Extended by:
ActiveSupport::Concern
Defined in:
app/extensions/concerns/head_row/timestamp_extensions.rb

Instance Method Summary collapse

Instance Method Details

#column_timestampsObject



16
17
18
19
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 16

def column_timestamps
  ActiveSupport::Deprecation.warn('Do not use table.column_timestamps. Use table.timestamps instead!')
  timestamps
end

#timestamp(attribute_name, _options = {}) ⇒ Object



7
8
9
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 7

def timestamp(attribute_name, _options = {})
  column attribute_name
end

#timestampsObject



11
12
13
14
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 11

def timestamps
  timestamp :created_at
  timestamp :updated_at
end