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
mongo_mapper-unstable-2010.08.08 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.06 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.05 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.04 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.03 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.02 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.08.01 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.31 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.30 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.29 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.28 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.27 lib/mongo_mapper/document.rb
thorsson-mongo_mapper-0.8.2 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.26 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.23 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.21 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.20 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.19 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.18 lib/mongo_mapper/document.rb
mongo_mapper-unstable-2010.07.16 lib/mongo_mapper/document.rb