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.

Frederik Fix's latest activity

Wednesday, December 17 2008
764 Observers on a model are called multiple times was updated in Ruby on Rails
  • Frederik Fix
    Frederik Fix commented at 1:41 PM

    Yes I had additional require statements in my code. Once I removed those the problem went away.

    Your judgement to not fix this is correct in my opinion.

  • Frederik Fix
    Frederik Fix commented at 12:47 PM

    That's correct. Just tried it and indeed if the callback uses a block this won't work.

    It's probably better to fix the underlying issue of requiring the class f...

Sunday, December 14 2008
764 Observers on a model are called multiple times was updated in Ruby on Rails
  • Frederik Fix
    Frederik Fix commented at 7:55 PM

    slightly better patch

  • Frederik Fix
    • Tag set to patch
    by Frederik Fix at 7:04 PM

    I've run into this problem as well on Rails 2.2.2

    After some digging I have found out that the problem is caused by the class files being required multiple time...