Module: Mongoid::Components

Defined in:
lib/mongoid/components.rb

Overview

:nodoc

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/mongoid/components.rb', line 4

def self.included(base)
  base.class_eval do
    # All modules that a +Document+ is composed of are defined in this
    # module, to keep the document class from getting too cluttered.
    include Mongoid::Associations
    include Mongoid::Attributes
    include Mongoid::Callbacks
    include Mongoid::Commands
    include Mongoid::Extras
    include Mongoid::Fields
    include Mongoid::Indexes
    include Mongoid::Matchers
    include Mongoid::Memoization
    include Mongoid::State
    include Observable
    include Validatable
    extend Mongoid::Finders
    extend Mongoid::NamedScope
  end
end