Sha256: 7bf87f43f11e69f005b4db131e971158518d3e4fefe18943f68a7fe52bc52c2c

Contents?: true

Size: 262 Bytes

Versions: 9

Compression:

Stored size: 262 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Date #:nodoc:
      module Conversions #:nodoc:
        def set(value)
          value.to_time.utc
        end
        def get(value)
          value.to_date
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-0.6.2 lib/mongoid/extensions/date/conversions.rb
mongoid-0.6.1 lib/mongoid/extensions/date/conversions.rb
mongoid-0.6.0 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.11 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.10 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.9 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.8 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.7 lib/mongoid/extensions/date/conversions.rb
mongoid-0.5.6 lib/mongoid/extensions/date/conversions.rb