read_attribute/write_attribute

heizusan Dec 31, 2010

I went back and looked at my notes from my previous project.

Yep, these methods were removed from ActiveRecord::Base in an early version, and moved into a Module called AttributeMethods, which is then included in ActiveRecord::Base.

So the methods are available in ActiveRecord::Base... but they ar...

Missing method definitions

heizusan Dec 31, 2010

THAiSi, and any others wondering this as well:

I've done some pretty extensive digging in to the rails code, for a couple of projects, and I've found that there are several methods that don't appear in APIDock. There are several reasons for this, but I'm not sure read_attribute falls under any of...

Documentation (v3.0.1)

koppen Nov 14, 2010 2 thanks

Documentation for this module (taken from ActiveSupport 3.0.1):

# A typical module looks like this
#
#   module M
#     def self.included(base)
#       base.send(:extend, ClassMethods)
#       base.send(:include, InstanceMethods)
#       scope :foo, :conditions => { :cre...