Module: RorVsWild::Local

Defined in:
lib/rorvswild/local.rb,
lib/rorvswild/local/queue.rb,
lib/rorvswild/local/middleware.rb

Defined Under Namespace

Classes: Middleware, Queue

Class Method Summary collapse

Class Method Details

.start(config = {}) ⇒ Object


6
7
8
9
# File 'lib/rorvswild/local.rb', line 6

def self.start(config = {})
  Rails.application.config.middleware.unshift(RorVsWild::Local::Middleware, nil)
  RorVsWild.start(config.merge(queue: RorVsWild::Local::Queue.new))
end