Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Tjalling van der Wal commented at 8:49 AM

    I'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
    Tjalling van der Wal commented at 2:21 PM

    Hi, 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
    Tjalling van der Wal created the ticket at 3:00 PM

    Since 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...