module Reactor module ResourceActionable class ActionEvent def self.perform(&block) @perform_block = block end def self.perform_on(ctx) ctx.instance_exec(&@perform_block) end end end end