Sha256: 339193fe3996ac2bee4330ca4608dc4c7a36e82607a2047334efacafe45f7fe0

Contents?: true

Size: 762 Bytes

Versions: 2

Compression:

Stored size: 762 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Components #:nodoc
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-1.2.14 lib/mongoid/components.rb
mongoid-1.2.13 lib/mongoid/components.rb