method
apply_to
rails latest stable - Class:
ActiveModel::AttributeRegistration::ClassMethods::PendingAttribute
apply_to(attribute)public
No documentation available.
# File activemodel/lib/active_model/attribute_registration.rb, line 36
def apply_to(attribute)
attribute = attribute.with_type(type || attribute.type)
attribute = attribute.with_user_default(default) if defined?(@default)
attribute
end