Module: Humanoid::Components

Defined in:
lib/humanoid/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
# File 'lib/humanoid/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 Associations
    include Attributes
    include Callbacks
    include Commands
    include Enslavement
    include Fields
    include Indexes
    include Matchers
    include Memoization
    include Observable
    include Validatable
    extend Finders
    extend NamedScope
  end
end