Method: ActiveModel::AttributeRegistration::ClassMethods::PendingType#apply_to
- Defined in:
- activemodel/lib/active_model/attribute_registration.rb
#apply_to(attribute_set) ⇒ Object
55 56 57 58 |
# File 'activemodel/lib/active_model/attribute_registration.rb', line 55 def apply_to(attribute_set) attribute = attribute_set[name] attribute_set[name] = attribute.with_type(type || attribute.type) end |