Volodymyr Zhukov
Volodymyr Zhukov
Maybe I'm a bit annoying but here is issue following association can't be simply deleted without instatiating or iterating through every record class Content < ActiveRecord::Base belongs_to :composite, :polymorphic =>...
I think it's not issue but feature there missing support for real deletion in case when you use gems like https://github.com/goncalossilva/rails3_acts_as_paranoid. I add some quick and dirty fix in my...
I have model with polymorphic association: class View < ActiveRecord::Base belongs_to :viewable, :polymorphic => true end class Content < ActiveRecord::Base has_many :views, as: :viewable, dependent: :destroy end class Topic <...