Skip to content

Commit

Permalink
Manager works with Rails Action::Dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
johncant committed Oct 22, 2012
1 parent 1551f8a commit a313c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mobvious/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def call(env)

status, headers, body = @app.call(env)

response = (body.is_a?(Rack::Response) ? body : Rack::Response.new(body, status, headers))
response = (body.is_a?(Array) ? Rack::Response.new(body, status, headers) : body)
response_callback(request, response)

[status, headers, body]
Expand Down

0 comments on commit a313c1b

Please sign in to comment.