method

with_type

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