Sha256: c64723b9b9de345a9ac8fe440d06a7971ba5773247897d9f0c3d9a0bd034545d

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Components #:nodoc
    extend ActiveSupport::Concern
    included do
      # All modules that a +Document+ is composed of are defined in this
      # module, to keep the document class from getting too cluttered.
      include ActiveModel::Conversion
      include ActiveModel::Naming
      include ActiveModel::Serialization
      include ActiveModel::Serializers::JSON
      include ActiveModel::Serializers::Xml
      include Mongoid::Associations
      include Mongoid::Atomicity
      include Mongoid::Attributes
      include Mongoid::Collections
      include Mongoid::Dirty
      include Mongoid::Extras
      include Mongoid::Fields
      include Mongoid::Hierarchy
      include Mongoid::Indexes
      include Mongoid::Keys
      include Mongoid::Matchers
      include Mongoid::Memoization
      include Mongoid::Paths
      include Mongoid::Persistence
      include Mongoid::Safety
      include Mongoid::State
      include Mongoid::Validations
      include Mongoid::Callbacks
      extend ActiveModel::Translation
      extend Mongoid::Finders
      extend Mongoid::NamedScope
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-2.0.0.beta.13 lib/mongoid/components.rb
mongoid-2.0.0.beta.11 lib/mongoid/components.rb
mongoid-2.0.0.beta.12 lib/mongoid/components.rb