Sha256: 55b9376c38c4b85644e0eae092886b4eb2d5b848ae8d40af56a954553aba9d69

Contents?: true

Size: 1.31 KB

Versions: 60

Compression:

Stored size: 1.31 KB

Contents

# encoding: UTF-8
module MongoMapper
  module Document
    extend Support::DescendantAppends

    def self.included(model)
      model.class_eval do
        extend  Plugins

        plugin Plugins::Document
        plugin Plugins::Querying # for now needs to be before associations (save_to_collection)
        plugin Plugins::Associations
        plugin Plugins::Caching
        plugin Plugins::Clone
        plugin Plugins::Descendants
        plugin Plugins::DynamicQuerying
        plugin Plugins::Equality
        plugin Plugins::Inspect
        plugin Plugins::Indexes
        plugin Plugins::Keys
        plugin Plugins::Dirty # for now dirty needs to be after keys
        plugin Plugins::Logger
        plugin Plugins::Modifiers
        plugin Plugins::Pagination
        plugin Plugins::Persistence
        plugin Plugins::Accessible
        plugin Plugins::Protected
        plugin Plugins::Rails
        plugin Plugins::Safe # needs to be after querying (save_to_collection)
        plugin Plugins::Sci
        plugin Plugins::Scopes
        plugin Plugins::Serialization
        plugin Plugins::Timestamps
        plugin Plugins::Userstamps
        plugin Plugins::Validations
        plugin Plugins::Callbacks # for now callbacks needs to be after validations
      end
      super
    end
  end # Document
end # MongoMapper

Version data entries

60 entries across 60 versions & 7 rubygems

Version Path
jonbell-mongo_mapper-0.8.6 lib/mongo_mapper/document.rb
ign-mongo_mapper-0.8.6.2 lib/mongo_mapper/document.rb
ign-mongo_mapper-0.8.6.1 lib/mongo_mapper/document.rb
ssherman-mongo_mapper-0.8.6 lib/mongo_mapper/document.rb
mongo_mapper-0.8.6 lib/mongo_mapper/document.rb
mongo_mapper-0.8.5 lib/mongo_mapper/document.rb
honkster-mongo_mapper-0.8.4 lib/mongo_mapper/document.rb
mongo_mapper-0.8.4 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.19 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.18 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.17 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.16 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.15 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.14 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.13 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.12 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.11 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.10 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.09 lib/mongo_mapper/document.rb
mongo_mapper-0.8.3 lib/mongo_mapper/document.rb