Module: MongoMapper::Document
- Defined in:
- lib/mongo_mapper/document.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary
collapse
Class Method Details
.append_extensions(*extensions) ⇒ Object
31
32
33
34
35
36
37
38
|
# File 'lib/mongo_mapper/document.rb', line 31
def self.append_extensions(*extensions)
.concat extensions
descendants.each do |model|
extensions.each { |extension| model.extend(extension) }
end
end
|
.append_inclusions(*inclusions) ⇒ Object
45
46
47
48
49
50
51
52
|
# File 'lib/mongo_mapper/document.rb', line 45
def self.append_inclusions(*inclusions)
.concat inclusions
descendants.each do |model|
inclusions.each { |inclusion| model.send :include, inclusion }
end
end
|
.descendants ⇒ Object
27
28
29
|
# File 'lib/mongo_mapper/document.rb', line 27
def self.descendants
@descendants ||= Set.new
end
|
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
41
42
43
|
# File 'lib/mongo_mapper/document.rb', line 41
def self.
@extra_extensions ||= []
end
|
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
55
56
57
|
# File 'lib/mongo_mapper/document.rb', line 55
def self.
@extra_inclusions ||= []
end
|