阅读背景:

多态关联foreign_type使用STI类设置祖先类型而不是current

来源:互联网 

I have

class Car < ActiveRecord::Base; end

class Porsche < Car
  has_many :page_items, :as=>:itemable, :dependent=>:destroy
end
class Car < ActiveRecord::Base; end

c



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: