Module: MongoMapper::Document
- Defined in:
- lib/mongomapper/document.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.descendants ⇒ Object
24 25 26 |
# File 'lib/mongomapper/document.rb', line 24 def self.descendants @descendants ||= Set.new end |
.included(model) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mongomapper/document.rb', line 5 def self.included(model) model.class_eval do include EmbeddedDocument include InstanceMethods include Observing include Callbacks include SaveWithValidation include RailsCompatibility::Document extend Validations::Macros extend ClassMethods def self.per_page 25 end unless respond_to?(:per_page) end descendants << model end |