Sha256: 08567552c1c07e5e612ba5399f6a182ae032d3ab0e4b0b7b22f7b3f5b16ed45e
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
module Mongoo class Base < Mongoo::Core include Mongoo::Changelog include Mongoo::Persistence include Mongoo::Modifiers extend ActiveModel::Callbacks define_model_callbacks :insert, :update, :remove def embedded_array_proxy(attrib, klass) Mongoo::Embedded::ArrayProxy.new(self, attrib, klass) end def embedded_hash_proxy(attrib, klass) Mongoo::Embedded::HashProxy.new(self, attrib, klass) end def embedded_doc(attrib, klass) klass.new(self, attrib) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoo-0.4.8 | lib/mongoo/base.rb |
mongoo-0.4.7 | lib/mongoo/base.rb |
mongoo-0.4.6 | lib/mongoo/base.rb |