lib/reactor/controllers/concerns/actions/action_event.rb in reactor-0.13.0 vs lib/reactor/controllers/concerns/actions/action_event.rb in reactor-0.14.0
- old
+ new
@@ -1,9 +1,13 @@
-class Reactor::ResourceActionable::ActionEvent
- def self.perform(&block)
- @perform_block = block
- end
+module Reactor
+ module ResourceActionable
+ class ActionEvent
+ def self.perform(&block)
+ @perform_block = block
+ end
- def self.perform_on(ctx)
- ctx.instance_exec(&@perform_block)
+ def self.perform_on(ctx)
+ ctx.instance_exec(&@perform_block)
+ end
+ end
end
-end
\ No newline at end of file
+end