Module: ROM::Changeset::PipeRegistry Private

Extended by:
Dry::Transformer::Registry
Defined in:
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.

Dry::Transformer Registry useful for pipe

Class Method Summary collapse

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/changeset/pipe_registry.rb', line 14

def self.add_timestamps(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.



19
20
21
# File 'lib/rom/changeset/pipe_registry.rb', line 19

def self.touch(data)
  Hash(updated_at: Time.now).merge(data)
end