Sha256: 5db8c3eba3538174401f046e110408f4cdf9804573d1d96960199104b2ae1065
Contents?: true
Size: 323 Bytes
Versions: 10
Compression:
Stored size: 323 Bytes
Contents
module Mongoid #:nodoc: module Extensions #:nodoc: module Date #:nodoc: module Conversions #:nodoc: def set(value) value.to_date.at_midnight.to_time unless value.blank? end def get(value) value ? value.getlocal.to_date : value end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems