Skip to content

Instantly share code, notes, and snippets.

@gma
Created December 14, 2011 12:18
Show Gist options
  • Save gma/1476374 to your computer and use it in GitHub Desktop.
Save gma/1476374 to your computer and use it in GitHub Desktop.
Noooooooo!
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::Finders
end
include ActiveModel::Conversion
include ActiveModel::MassAssignmentSecurity
include ActiveModel::Naming
include ActiveModel::Observing
include ActiveModel::Serializers::JSON
include ActiveModel::Serializers::Xml
include Mongoid::Atomic
include Mongoid::Attributes
include Mongoid::Collections
include Mongoid::Copyable
include Mongoid::DefaultScope
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::NamedScope
include Mongoid::NestedAttributes
include Mongoid::Persistence
include Mongoid::Relations
include Mongoid::Safety
include Mongoid::Serialization
include Mongoid::Sharding
include Mongoid::State
include Mongoid::Validations
include Mongoid::Callbacks
include Mongoid::MultiDatabase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment