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.

Reto's latest activity

Wednesday, November 04 2009
2421 Problem with has_many :through and alternate keys was updated in Ruby on Rails
  • Reto
    • Assigned user set to Pratik
    by Reto at 2:21 PM

    I have a similar problem here, but in my case its a has-many through has_many relation.

    # Shift ---< ShiftTask >--- Task
    
    # Shift(group_id, name, ...)
    class Sh...
Monday, October 26 2009
2923 named_scope through a has_many (or has_many through) generates redundant cond... was updated in Ruby on Rails
  • Reto
    Reto commented at 9:24 AM

    Had the same problem with the following constellation. The patch fixed it as well.

    class Employment < ActiveRecord::Base
      belongs_to :user
    
      has_many :silbli...
Wednesday, July 29 2009
2506 models are not loaded in migrations when config.threadsafe! is set was updated in Ruby on Rails
  • Reto
    Reto commented at 10:30 AM

    hmm, I think I can't follow you? What exactly would make these migrations invalid? If they used to avoid that problem by explicitly require models then they sho...

Tuesday, July 28 2009
2506 models are not loaded in migrations when config.threadsafe! is set was updated in Ruby on Rails
  • Reto
    Reto commented at 8:30 PM

    lol, what a coincidence :).

    "Wouldn't that break lots of existing migrations": No, why? I would only extend the text message of the 'no such constant' exception...

  • Reto
    Reto commented at 8:19 PM

    Or could we even force a non-threadsafe environment for rake tasks? It doesn't make sense to be threadsafe there anyway.

Monday, July 27 2009
2506 models are not loaded in migrations when config.threadsafe! is set was updated in Ruby on Rails
  • Reto
    • Tag changed from 2.3.2, migrations to 2.3.4, migrations
    by Reto at 1:30 PM

    Could we add a warning about that problem somewhere near the config in environments/production.rb? Or perhaps even in the actual 'const missing' error message? ...

Thursday, July 16 2009
2068 HABTM Relationships Fail When Join Table has Primary Key was updated in Ruby on Rails
  • Reto
    Reto commented at 10:25 AM

    Sorry for waking up this old ticket, but I almost shoot my foot due to this problem today.

    In my opinion the documentation doesn't stress this problem enough, i...