method
with_type
v6.1.7.7 -
Show latest stable
- Class:
ActiveModel::Attribute
with_type(type)public
No documentation available.
# File activemodel/lib/active_model/attribute.rb, line 84
def with_type(type)
if changed_in_place?
with_value_from_user(value).with_type(type)
else
self.class.new(name, value_before_type_cast, type, original_attribute)
end
end