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.

Tys von Gaza's latest activity

Thursday, February 26 2009
2087 Conditions on deep joins uses wrong table name was updated in Ruby on Rails
  • Tys von Gaza
    • Tag changed from 2.3-rc1, active_record, conditions, joins to 2.3-rc1, active_record, conditions, joins, tests
    by Tys von Gaza at 9:08 PM

    Here is a patch that adds the tests, not really sure where to begin to fix the bug through.

  • Tys von Gaza
    Tys von Gaza commented at 7:56 PM

    After thinking about this further, the root of the problem is how the conditions are built and doesn't have much to do with the joins.

    The following should real...

  • Tys von Gaza
    Tys von Gaza commented at 7:13 PM

    The example can be simplified to a single belongs_to, has_many relationship:

    
    AnswerSet
      has_many :answers
    
    Answer
      belongs_to :answer_set
    

    Wrong query...

  • Tys von Gaza
    Tys von Gaza created the ticket at 6:51 PM

    Example schema: AnswerSet has_many :answers

    Answer belongs_to :answer_set has_many :answer_options

    AnswerOptions belongs_to :answer

    Simplified query needed: Nee...

Monday, December 15 2008
1581 ActionController::Caching::Sweeping method_missing doesn't take a proc was updated in Ruby on Rails
  • Tys von Gaza
    • Tag changed from 2.2, actioncontroller, bug, caching, sweeper to 2.2, actioncontroller, bug, caching, patch, sweeper
    • Title changed from ActionController::Caching::Sweeping method_missing doesn't take a &block to ActionController::Caching::Sweeping method_missing doesn't take a proc
    by Tys von Gaza at 9:43 PM

    Patch for the fix following the guide here: http://rails.lighthouseapp.com/p...

    Not really sure where to get started to add a test for this, advice?

  • Tys von Gaza
    Tys von Gaza created the ticket at 9:29 PM

    If you want to run a controller action that requires a proc it won't get passed along through the sweepers method missing call.

    IE, the following will get "no b...