I have the class project ,
class Project < ActiveRecord::Base
has_many :Users
acts_as_tree
end
I want to delete all children, if I delete the parent, in this case meaning, if I delete the project(parent) must be deleted all users (children) and subprojects(children).
I can add by user dependent: :delete_all
but I don't know how can I do with acts_as_tree
Thanks