method
with_type
rails latest stable - Class:
ActiveModel::Attribute
with_type(type)public
No documentation available.
# File activemodel/lib/active_model/attribute.rb, line 91
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