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_timestamps ⇒ Object
16 17 18 19 |
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 16 def ActiveSupport::Deprecation.warn('Do not use table.column_timestamps. Use table.timestamps instead!') end |
#timestamp(attribute_name, _options = {}) ⇒ Object
7 8 9 |
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 7 def (attribute_name, = {}) column attribute_name end |
#timestamps ⇒ Object
11 12 13 14 |
# File 'app/extensions/concerns/head_row/timestamp_extensions.rb', line 11 def :created_at :updated_at end |