Sha256: 988166b35026d42e6aa19ac3b44f8a1c68b0593b9a5ce0dbd530f9d24a349e01
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
module Mongoo module Embedded class Base < Mongoo::Core def initialize(parent, hash={}) @parent = parent @persisted = persisted? init_from_hash(hash) end def persisted? @parent.persisted? end def ==(other) to_hash == other.to_hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoo-0.4.9 | lib/mongoo/embedded/base.rb |
mongoo-0.4.8 | lib/mongoo/embedded/base.rb |
mongoo-0.4.7 | lib/mongoo/embedded/base.rb |
mongoo-0.4.6 | lib/mongoo/embedded/base.rb |