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