Module: MongoMapper::Document
- Extended by:
- Support::DescendantAppends
- Defined in:
- lib/mongo_mapper/document.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Methods included from Support::DescendantAppends
append_extensions, append_inclusions, descendants, extra_extensions, extra_inclusions, included
Class Method Details
.included(model) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/mongo_mapper/document.rb', line 5 def self.included(model) model.class_eval do include InstanceMethods extend Support::Find extend ClassMethods extend Plugins plugin Plugins::Associations plugin Plugins::Clone plugin Plugins::Descendants plugin Plugins::Equality plugin Plugins::Inspect 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::Protected plugin Plugins::Rails plugin Plugins::Serialization plugin Plugins::Timestamps plugin Plugins::Userstamps plugin Plugins::Validations plugin Plugins::Callbacks # for now callbacks needs to be after validations extend Plugins::Validations::DocumentMacros end super end |