module EventSourcery::Rails::CommandHandler::ClassMethods
Public Instance Methods
command_events()
click to toggle source
# File lib/event_sourcery/rails/command_handler.rb, line 17 def command_events @command_events ||= {} end
on(command, &block)
click to toggle source
# File lib/event_sourcery/rails/command_handler.rb, line 21 def on(command, &block) self.command_events[command] = block end