Sha256: 623b250449a76081e89dcadb06ac6c940d9d36c37ce9c6cd1b340fffc6276285
Contents?: true
Size: 556 Bytes
Versions: 91
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Type class Time < ActiveModel::Type::Time include Internal::Timezone class Value < DelegateClass(::Time) # :nodoc: end def serialize(value) case value = super when ::Time Value.new(value) else value end end private def cast_value(value) case value = super when Value value.__getobj__ else value end end end end end
Version data entries
91 entries across 87 versions & 7 rubygems