Sha256: 3e50ea0ff0a1443d938e31052802cad77b8a2d1d16fe5050dbfbd0544a76d908
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true require 'transproc/all' require 'transproc/registry' module ROM class Changeset # Transproc Registry useful for pipe # # @api private module PipeRegistry extend Transproc::Registry import Transproc::Coercions import Transproc::HashTransformations def self.add_timestamps(data) now = Time.now Hash(created_at: now, updated_at: now).merge(data) end def self.touch(data) Hash(updated_at: Time.now).merge(data) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-changeset-5.3.0 | lib/rom/changeset/pipe_registry.rb |
rom-changeset-5.2.3 | lib/rom/changeset/pipe_registry.rb |
rom-changeset-5.2.1 | lib/rom/changeset/pipe_registry.rb |