Does dependent destroy work with polymorphic=>true? Otherwise,
should I overload destroy, destroying the item, and then deleting the
item
via the class delete to avoid the recursive destroy?
This doesn’t work:
class FolderLinking < ActiveRecord::Base
belongs_to :folder_linkable, :polymorphic =>
true, :dependent=> :destroy
when an instance of FolderLinking is destroyed, I want the item that
it links to destroyed. I’m currently seeing the folder_linkable
sticking around.