Module: ROM::Plugins::Command::Timestamps::ClassInterface
- Defined in:
- core/lib/rom/plugins/command/timestamps.rb
Instance Method Summary collapse
-
#datestamps(*names) ⇒ Object
(also: #datestamp)
Set up attributes to datestamp when the command is called.
-
#timestamps(*names) ⇒ Object
(also: #timestamp)
private
Set up attributes to timestamp when the command is called.
Instance Method Details
#datestamps(*names) ⇒ Object Also known as: datestamp
Set up attributes to datestamp when the command is called
139 140 141 |
# File 'core/lib/rom/plugins/command/timestamps.rb', line 139 def datestamps(*names) datestamp_columns datestamp_columns.merge(names) end |
#timestamps(*names) ⇒ Object Also known as: timestamp
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set up attributes to timestamp when the command is called
117 118 119 |
# File 'core/lib/rom/plugins/command/timestamps.rb', line 117 def (*names) .merge(names) end |