Module: MongoMapper::EmbeddedDocument

Extended by:
Support::DescendantAppends
Defined in:
lib/mongo_mapper/embedded_document.rb

Class Method Summary collapse

Methods included from Support::DescendantAppends

append_extensions, append_inclusions, descendants, extra_extensions, extra_inclusions, included

Class Method Details

.included(model) ⇒ Object



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

def self.included(model)
  model.class_eval do
    extend  Plugins

    plugin Plugins::EmbeddedDocument
    plugin Plugins::Associations
    plugin Plugins::Clone
    plugin Plugins::Descendants
    plugin Plugins::Equality
    plugin Plugins::Inspect
    plugin Plugins::Keys
    plugin Plugins::Logger
    plugin Plugins::Persistence
    plugin Plugins::Protected
    plugin Plugins::Rails
    plugin Plugins::Sci
    plugin Plugins::Serialization
    plugin Plugins::Validations
    plugin Plugins::Callbacks
    plugin Plugins::QueryLogger

  end
  super
end