diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-01 15:16:41 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-01 23:41:51 +0000 |
commit | 3dcb127109428c1948a9f3bcad7101bd8a7f4d8a (patch) | |
tree | 8dc09dc6e13f497dd8b4b01728a3af42f26bffa8 /activerecord/lib/active_record/attribute_methods/primary_key.rb | |
parent | 365e10b8dcbefe36cdbe98e077d6432ad76c6a08 (diff) | |
download | rails-3dcb127109428c1948a9f3bcad7101bd8a7f4d8a.tar.gz rails-3dcb127109428c1948a9f3bcad7101bd8a7f4d8a.tar.bz2 rails-3dcb127109428c1948a9f3bcad7101bd8a7f4d8a.zip |
Don't rely on underscore-prefixed attribute methods.
Define singleton methods on the attributes module instead. This reduces
method pollution on the actual model classes. It also seems to make
something faster, I am unsure why! O_o
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods/primary_key.rb')
0 files changed, 0 insertions, 0 deletions