Gabriel Mazetto
Not a member
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 created the ticket at 5:49 AMUse this two models:
class Item < ActiveRecord::Base
belongs_to :itemable, :polymorphic => true endclass Product < ActiveRecord::Base
has_one :item, :as => :it...