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.

Gabriel Mazetto's latest activity

Monday, May 02 2011
6761 has_one polymorphic is creating circular dependency with parent model was updated in Ruby on Rails
  • Gabriel Mazetto
    Gabriel Mazetto commented at 5:52 AM

    Also forget to mention that it's rails 3.0.7

  • Gabriel Mazetto
    Gabriel Mazetto created the ticket at 5:49 AM

    Use this two models:

    class Item < ActiveRecord::Base
    belongs_to :itemable, :polymorphic => true end

    class Product < ActiveRecord::Base
    has_one :item, :as => :it...