Methods
R
Classes and Modules
Constants
ATTRIBUTE_TYPES_CACHED_BY_DEFAULT = [:datetime, :timestamp, :time, :date]
Instance Public methods
read_attribute(attr_name)

Returns the value of the attribute identified by attr_name after it has been typecast (for example, “2004-12-12” in a data column is cast to a date object, like Date.new(2004, 12, 12)).

     # File activerecord/lib/active_record/attribute_methods/read.rb, line 128
128:       def read_attribute(attr_name)
129:         self.class.type_cast_attribute(attr_name, @attributes, @attributes_cache)
130:       end