Sha256: bf54ace1cc56421752f2a5d1e9109cd629c0672912ba63e4de4c2d257c1a5712
Contents?: true
Size: 223 Bytes
Versions: 1
Compression:
Stored size: 223 Bytes
Contents
class Date # @api public def self.to_mongo(value) Time.utc(value.year, value.month, value.day) end # @api public def self.from_mongo(value) ::Date.new(value.year, value.month, value.day) end end # Date
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-mongo-adapter-0.6.0 | lib/mongo_adapter/support/date.rb |