Module: ROM::Plugins::Command::Timestamps::ClassInterface
- Defined in:
- 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
137 138 139 |
# File 'lib/rom/plugins/command/timestamps.rb', line 137 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
115 116 117 |
# File 'lib/rom/plugins/command/timestamps.rb', line 115 def (*names) .merge(names) end |