method

with_type

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Attribute
with_type(type) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.