Tjalling van der Wal
Not a member
Tjalling van der Wal's latest activity
Tuesday, July 07 2009
2808
AR attribute collides with private method, results in NoMethodError
was updated
in Ruby on Rails
-
Tjalling van der Wal commented at 8:49 AMI've commented the check for calling private methods out in our project. I don't know if the check is really needed, since method_missing performs other checks ...
Thursday, June 18 2009
2808
AR attribute collides with private method, results in NoMethodError
was updated
in Ruby on Rails
-
Tjalling van der Wal commented at 2:21 PMHi, thanks for your interest.
To reproduce the error I made the following changes:
First, instead of defining 'y' in Foo, add it to Object in an initializer (in...
Tuesday, June 16 2009
2808
AR attribute collides with private method, results in NoMethodError
was created
in Ruby on Rails
-
Tjalling van der Wal created the ticket at 3:00 PMSince 2.3 (possibly 2.2) there is a check in activerecord/lib/active_record/attribute_methods.rb to protect against calling private methods through method_missi...