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.

Marco Otte-Witte's latest activity

Monday, June 28 2010
4744 ActiveRecord uses wrong class for has_many association was updated in Ruby on Rails
  • Marco Otte-Witte
    Marco Otte-Witte commented at 10:04 AM

    Yep, the version with '::Report' works, the one with ::Report.name does not since that will result in 'Report' which will then result in Reportable's Report cla...

  • Marco Otte-Witte
    Marco Otte-Witte commented at 9:47 AM

    Yes, that's what I meant to say.

  • Marco Otte-Witte
    • Importance changed from to Low
    by Marco Otte-Witte at 9:37 AM

    Ok, I tried to fix it with

    :class_name => ::Report.name
    

    but that wouldn't fix it of course. Guess ::Report.name is 'Report' not '::Report'

Tuesday, June 01 2010
4744 ActiveRecord uses wrong class for has_many association was updated in Ruby on Rails
  • Marco Otte-Witte
    • Tag changed from activerecord associations, activerecord to activerecord associations, 2.3.5, activerecord
    by Marco Otte-Witte at 2:26 PM
  • Marco Otte-Witte
    Marco Otte-Witte created the ticket at 2:25 PM

    When I use the reportable gem (which defines a class named "Saulabs::Reportable::Report") in a Rails (2.3.5) project that itself defines a "Report" model and an...