Sha256: 550616b66a83a5decddd7ea2b4354501f0c3ced888886696741d29db4247a1c4

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Fields #:nodoc:
    module Serializable #:nodoc:
      # Defines the behaviour for time with zone fields.
      class TimeWithZone
        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_with_zone.rb
mongoid-2.3.5 lib/mongoid/fields/serializable/time_with_zone.rb
mongoid-2.3.4 lib/mongoid/fields/serializable/time_with_zone.rb