Class: Workarea::ReleaseServerMiddleware

Inherits:
Object
  • Object
show all
Defined in:
app/middleware/workarea/release_server_middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ReleaseServerMiddleware

Returns a new instance of ReleaseServerMiddleware.



3
4
5
# File 'app/middleware/workarea/release_server_middleware.rb', line 3

def initialize(options = {})
  @options = options
end

Instance Method Details

#call(worker, msg, queue) ⇒ Object



7
8
9
# File 'app/middleware/workarea/release_server_middleware.rb', line 7

def call(worker, msg, queue)
  Release.without_current { yield }
end