aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-08-14 08:53:02 +0000
committerMichael Koziarski <michael@koziarski.com>2007-08-14 08:53:02 +0000
commit5b801b596014255ecf55dcf58c82cbf061faa08b (patch)
tree87df2affc6f9902a7d6c034ed065385086e34423 /railties/lib/commands.rb
parent55f444e69432aa9840406b3ad313eec39b6bbb87 (diff)
downloadrails-5b801b596014255ecf55dcf58c82cbf061faa08b.tar.gz
rails-5b801b596014255ecf55dcf58c82cbf061faa08b.tar.bz2
rails-5b801b596014255ecf55dcf58c82cbf061faa08b.zip
Change the implementation of ActiveRecord's attribute reader and writer methods:
* Generate Reader and Writer methods which cache attribute values in hashes. This is to avoid repeatedly parsing the same date or integer columns. * Move the attribute related methods out to attribute_methods.rb to de-clutter base.rb * Change exception raised when users use find with :select then try to access a skipped column. Plugins could override missing_attribute() to lazily load the columns. * Move method definition to the class, instead of the instance * Always generate the readers, writers and predicate methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands.rb')
0 files changed, 0 insertions, 0 deletions