This project is archived and is in readonly mode.
Changeset [d60d7edce462f4602bfc9996689087a235b034c9] by Sam Goldstein
Revision d60d7edce462f4602bfc9996689087a235b034c9,
committed by Sam Goldstein
· July 9th, 2009 @ 05:44 AM
Make it so AR attributes which conflict with object-private methods (e.g. system) don't 'randomly' cause NoMethodErrors
Previously if you called this attribute before others, you'd get exceptions. But if it was the second-or-subsequent attribute you retrieved you'd get the correct behaviour.
Signed-off-by: Michael Koziarski michael@koziarski.com [#2808 state:committed] http://github.com/rails/rails/co...
2 changed files
-
M
activerecord/lib/active_record/attribute_methods.rb -
M
activerecord/test/cases/attribute_methods_test.rb