Sha256: 430954d065faa43b3f9ff8e6fa79931f1d98aa8bcb4082e3b802bd45c6d19157
Contents?: true
Size: 624 Bytes
Versions: 3
Compression:
Stored size: 624 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Fields #:nodoc: module Serializable #:nodoc: # Defines the behaviour for date fields. class Time include Serializable include Timekeeping # When reading the field do we need to cast the value? This holds true when # times are stored or for big decimals which are stored as strings. # # @example Typecast on a read? # field.cast_on_read? # # @return [ true ] Date fields cast on read. # # @since 2.1.0 def cast_on_read?; true; end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
mongoid-multi-db-3.0.0 | lib/mongoid/fields/serializable/time.rb |
mongoid-2.3.5 | lib/mongoid/fields/serializable/time.rb |
mongoid-2.3.4 | lib/mongoid/fields/serializable/time.rb |