method
read_attribute
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Read
read_attribute(attr_name, &block)public
Returns the value of the attribute identified by attr_name after it has been typecast (for example, “2004-12-12” in a date column is cast to a date object, like Date.new(2004, 12, 12)).