Module: MongoMapper::EmbeddedDocument
- Extended by:
- Support::DescendantAppends
- Defined in:
- lib/mongo_mapper/embedded_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
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 |
# File 'lib/mongo_mapper/embedded_document.rb', line 6 def self.included(model) model.class_eval do include InstanceMethods extend ClassMethods extend Plugins plugin Plugins::Associations plugin Plugins::Clone plugin Plugins::Descendants plugin Plugins::Equality plugin Plugins::Inspect plugin Plugins::Keys plugin Plugins::Logger plugin Plugins::Persistence plugin Plugins::Protected plugin Plugins::Rails plugin Plugins::Serialization plugin Plugins::Validations plugin Plugins::Callbacks attr_reader :_root_document, :_parent_document end super end |