Method: ActiveModel::Model::Interdependence.included
- Defined in:
- lib/activemodel/model/interdependence.rb
.included(base) ⇒ undefined
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.
Patch ActiveModel::Model directly
12 13 14 15 16 |
# File 'lib/activemodel/model/interdependence.rb', line 12 def self.included(base) super base.extend(ActiveModel::Validations::ClassMethods) base.singleton_class.prepend(ClassMethods) end |