Sha256: fbc605dc04e415a867fa3d3ec33a8ba8ccd9bc55585af8340f0d8668e9d2e65e
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module ActiveRecordDataLoader module ActiveRecord class DatetimeValueGenerator class << self def generator_for(model_class:, ar_column:, connection_factory: nil) ->(row) { timestamp(model_class, row) } end private def timestamp(model, row_number) PerRowValueCache[:datetime].get_or_set(model: model, row: row_number) do Time.now.utc end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems