Module: ROM::Changeset::PipeRegistry Private
- Extended by:
- Transproc::Registry
- Defined in:
- lib/rom/repository/changeset/pipe.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Transproc Registry useful for pipe
Class Method Summary collapse
- .add_timestamps(data) ⇒ Object private
- .touch(data) ⇒ Object private
Class Method Details
.add_timestamps(data) ⇒ Object
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.
14 15 16 17 |
# File 'lib/rom/repository/changeset/pipe.rb', line 14 def self.(data) now = Time.now data.merge(created_at: now, updated_at: now) end |
.touch(data) ⇒ Object
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.
19 20 21 |
# File 'lib/rom/repository/changeset/pipe.rb', line 19 def self.touch(data) data.merge(updated_at: Time.now) end |