Module: Magellan::Extentions::Rails::Application

Included in:
Rails::Application
Defined in:
lib/magellan/extentions/rails/application.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'lib/magellan/extentions/rails/application.rb', line 34

def call(env)
  if request_object = magellan_parse_publish_request(env)
    @subscriber_executor ||= Magellan::Subscriber::Executor.new
    @subscriber_executor.execute(request_object)
    res = ActionDispatch::Response.new
    [200, res.headers, []]
  else
    super
  end
end