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)). (Alias for the protected read_attribute method).
Source Code
# File active_record/base.rb, line 2094 def [](attr_name) read_attribute(attr_name) end
<code/>and<pre/>for code samples.