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
141 142 143 |
# File 'lib/rom/plugins/command/timestamps.rb', line 141 def datestamps(*names) config.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
119 120 121 |
# File 'lib/rom/plugins/command/timestamps.rb', line 119 def (*names) config. = .merge(names) end |