method

value

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.

value()
public

No documentation available.

# File activerecord/lib/active_record/attribute.rb, line 36
    def value
      # `defined?` is cheaper than `||=` when we get back falsy values
      @value = type_cast(value_before_type_cast) unless defined?(@value)
      @value
    end