Files

Class Index [+]

Quicksearch

ActiveRecord::AttributeMethods::Read

Constants

ATTRIBUTE_TYPES_CACHED_BY_DEFAULT

Public Instance Methods

read_attribute(attr_name) click to toggle source

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 lib/active_record/attribute_methods/read.rb, line 126
126:       def read_attribute(attr_name)
127:         self.class.type_cast_attribute(attr_name, @attributes, @attributes_cache)
128:       end

Private Instance Methods

attribute(attribute_name) click to toggle source
     # File lib/active_record/attribute_methods/read.rb, line 131
131:         def attribute(attribute_name)
132:           read_attribute(attribute_name)
133:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.