lib/reactor/controllers/concerns/actions/destroy_event.rb in reactor-0.13.0 vs lib/reactor/controllers/concerns/actions/destroy_event.rb in reactor-0.14.0
- old
+ new
@@ -1,5 +1,9 @@
-class Reactor::ResourceActionable::DestroyEvent < Reactor::ResourceActionable::ActionEvent
- perform do
- action_event "#{resource_name}_destroyed", last_snapshot: actionable_resource.as_json
+module Reactor
+ module ResourceActionable
+ class DestroyEvent < ActionEvent
+ perform do
+ action_event "#{resource_name}_destroyed", last_snapshot: actionable_resource.as_json
+ end
+ end
end
-end
\ No newline at end of file
+end