Sha256: c88614c51bc5f6822812b6c9ea1c106fa29fb25e80f1e490d8b5ce89415b55fe

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

# encoding: utf-8
module Mongoid #:nodoc
  module Components #:nodoc
    extend ActiveSupport::Concern

    # All modules that a +Document+ is composed of are defined in this
    # module, to keep the document class from getting too cluttered.
    included do
      extend ActiveModel::Translation
      extend Mongoid::DefaultScope
      extend Mongoid::Finders
      extend Mongoid::NamedScope
    end

    include ActiveModel::Conversion
    include ActiveModel::Naming
    include ActiveModel::MassAssignmentSecurity
    include ActiveModel::Serializers::JSON
    include ActiveModel::Serializers::Xml
    include Mongoid::Atomicity
    include Mongoid::Attributes
    include Mongoid::Collections
    include Mongoid::Copyable
    include Mongoid::Dirty
    include Mongoid::Extras
    include Mongoid::Fields
    include Mongoid::Hierarchy
    include Mongoid::Indexes
    include Mongoid::Inspection
    include Mongoid::JSON
    include Mongoid::Keys
    include Mongoid::Matchers
    include Mongoid::MultiParameterAttributes
    include Mongoid::Modifiers
    include Mongoid::NestedAttributes
    include Mongoid::Paths
    include Mongoid::Persistence
    include Mongoid::Relations
    include Mongoid::Safety
    include Mongoid::Serialization
    include Mongoid::State
    include Mongoid::Validations
    include Mongoid::Callbacks
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/components.rb
mongoid-2.0.0.rc.6 lib/mongoid/components.rb