method

with_type

rails latest stable - Class: ActiveRecord::Attribute

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

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