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.

Bertg's latest activity

Wednesday, June 16 2010
4873 Fail to force_reload polymorphic associations was updated in Ruby on Rails
  • Bertg
    Bertg commented at 3:57 PM

    Current test is not valid, working on a valid one. Sorry guys/girls.

  • Bertg
    Bertg created the ticket at 3:34 PM

    When using the instance.association(true) syntax; where the association is polymorphic, the call will fail with a NameError: uninitialized constant error.

    Expec...

Sunday, August 31 2008
906 Better query for ASSOCIATION_ids was updated in Ruby on Rails
  • Bertg
    Bertg commented at 12:40 AM

    This patch will fail if an other column is defined as the id column.

    The 'self.class.primary_key' property should be used...

Tuesday, August 26 2008
906 Better query for ASSOCIATION_ids was created in Ruby on Rails
  • Bertg
    Bertg created the ticket at 10:58 AM

    For has_many relations Imagine we have 2 models: Cart and Item. Cart has many Items.

    If we execute the following statement

    
    Cart.first.item_ids
    

    we get the fo...