Module: Virtus::Model
- Defined in:
- lib/virtus/model.rb
Defined Under Namespace
Modules: Constructor, Core, MassAssignment
Class Method Summary collapse
- .extended(descendant) ⇒ Object private
- .included(descendant) ⇒ Object private
Class Method Details
.extended(descendant) ⇒ Object
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.
12 13 14 15 |
# File 'lib/virtus/model.rb', line 12 def self.extended(descendant) super descendant.extend(Extensions) end |
.included(descendant) ⇒ Object
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.
6 7 8 9 |
# File 'lib/virtus/model.rb', line 6 def self.included(descendant) super descendant.send(:include, ClassInclusions) end |