decidim-admin/app/commands/decidim/admin/destroy_feature.rb in decidim-0.0.1 vs decidim-admin/app/commands/decidim/admin/destroy_feature.rb in decidim-0.0.2

- old
+ new

@@ -24,12 +24,17 @@ private def destroy_feature transaction do + run_before_hooks @feature.destroy! run_hooks end + end + + def run_before_hooks + @feature.manifest.run_hooks(:before_destroy, @feature) end def run_hooks @feature.manifest.run_hooks(:destroy, @feature) end