Class: Eventsimple::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/eventsimple/engine.rb

Instance Method Summary collapse

Instance Method Details

#verify_dispatchers!Object



36
37
38
39
40
41
42
# File 'lib/eventsimple/engine.rb', line 36

def verify_dispatchers!
  unless Eventsimple.configuration.dispatchers.all? { |dispatcher|
    dispatcher < Eventsimple::Dispatcher
  }
    raise ArgumentError, 'dispatchers must inherit from Eventsimple::Dispatcher'
  end
end