Module: ROM::Changeset::PipeRegistry Private
- Extended by:
- Transproc::Registry
- Defined in:
- changeset/lib/rom/changeset/pipe_registry.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.
17 18 19 20 |
# File 'changeset/lib/rom/changeset/pipe_registry.rb', line 17 def self.(data) now = Time.now Hash(created_at: now, updated_at: now).merge(data) 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.
22 23 24 |
# File 'changeset/lib/rom/changeset/pipe_registry.rb', line 22 def self.touch(data) Hash(updated_at: Time.now).merge(data) end |