Module: MongoMapper::EmbeddedDocument

Extended by:
DescendantAppends
Defined in:
lib/novelys_mongo_mapper/embedded_document.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Methods included from DescendantAppends

append_extensions, append_inclusions, descendants, extra_extensions, extra_inclusions, included

Class Method Details

.included(model) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/novelys_mongo_mapper/embedded_document.rb', line 5

def self.included(model)
  model.class_eval do
    include InstanceMethods
    extend  ClassMethods
    extend Plugins

    plugin Plugins::Associations
    plugin Plugins::Clone
    plugin Plugins::Descendants
    plugin Plugins::Equality
    plugin Plugins::Inspect
    plugin Plugins::Keys
    plugin Plugins::Logger
    plugin Plugins::Protected
    plugin Plugins::Rails
    plugin Plugins::Serialization
    plugin Plugins::Validations

    attr_accessor :_root_document, :_parent_document
  end

  super
end