我希望以下工作:
class Attachment < ActiveRecord::Base
belongs_to :attachable, :polymorphic => true, :touch => true
end
我希望在保存或销毁附件记录时“触及”关联的对象。它没有用。任何想法为什么?
我希望以下工作:
class Attachment < ActiveRecord::Base
belongs_to :attachable, :polymorphic => true, :touch => true
end
我希望在保存或销毁附件记录时“触及”关联的对象。它没有用。任何想法为什么?