Sha256: 1fa3fbcc08968ef10c8ff4b192fc7875d60d07a692015e7c6fbe1016ea4e2684
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true require "json" module Statesman module Adapters module ActiveRecordTransition DEFAULT_UPDATED_TIMESTAMP_COLUMN = :updated_at extend ActiveSupport::Concern included do if ::ActiveRecord.gem_version >= Gem::Version.new("7.1") serialize :metadata, coder: JSON else serialize :metadata, JSON end class_attribute :updated_timestamp_column self.updated_timestamp_column = DEFAULT_UPDATED_TIMESTAMP_COLUMN end end end end
Version data entries
3 entries across 3 versions & 1 rubygems