diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-08-02 21:06:35 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-08-02 21:06:35 -0500 |
commit | 9b68877897a44d4484cde40117abc42c9b029154 (patch) | |
tree | c31b76a64b7f184307a55e05cbf0955eed840760 /activerecord/lib/active_record/attribute_methods/write.rb | |
parent | b53f00690173797a39ff46e55dd25c20581c3d00 (diff) | |
download | rails-9b68877897a44d4484cde40117abc42c9b029154.tar.gz rails-9b68877897a44d4484cde40117abc42c9b029154.tar.bz2 rails-9b68877897a44d4484cde40117abc42c9b029154.zip |
Track generated attribute methods in a separate module
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods/write.rb')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/write.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/write.rb b/activerecord/lib/active_record/attribute_methods/write.rb index 497e72ee4a..c75745c00d 100644 --- a/activerecord/lib/active_record/attribute_methods/write.rb +++ b/activerecord/lib/active_record/attribute_methods/write.rb @@ -10,7 +10,7 @@ module ActiveRecord module ClassMethods protected def define_attribute_method=(attr_name) - evaluate_attribute_method "def #{attr_name}=(new_value); write_attribute('#{attr_name}', new_value); end", "#{attr_name}=" + generated_methods.module_eval("def #{attr_name}=(new_value); write_attribute('#{attr_name}', new_value); end", __FILE__, __LINE__) end end |