jackc / edge

Edge provides graph functionality to ActiveRecord.
MIT License
90 stars 10 forks source link

Support dependent option #18

Closed allenwq closed 8 years ago

allenwq commented 8 years ago

I think most of the time we want to delete the children after parent was deleted.

So a dependent option would be very useful, so that we can do:

acts_as_forest order: "name", dependent: :destroy
allenwq commented 8 years ago

@jackc Any comments ?

jackc commented 8 years ago

Merged. Thanks.

allenwq commented 8 years ago

@jackc Thanks a lot!

allenwq commented 8 years ago

@jackc Do you mind to release a new version ?

jackc commented 8 years ago

Done.

allenwq commented 8 years ago

@jackc Thanks so much !