Class: ActiveModel::AttributeRegistration::ClassMethods::PendingDefault
- Inherits:
-
Struct
- Object
- Struct
- ActiveModel::AttributeRegistration::ClassMethods::PendingDefault
- Defined in:
- lib/active_model/attribute_registration.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#apply_to(attribute_set) ⇒ Object
62 63 64 |
# File 'lib/active_model/attribute_registration.rb', line 62 def apply_to(attribute_set) attribute_set[name] = attribute_set[name].with_user_default(default) end |