Skip to content

Commit

Permalink
insert middleware before ActionDispatch::RequestId
Browse files Browse the repository at this point in the history
see discussion in Octo-Labs#1
  • Loading branch information
jjb committed May 31, 2013
1 parent 6019206 commit 3952bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/heroku-request-id/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module HerokuRequestId
class Railtie < Rails::Railtie
initializer 'heroku_request_id.add_middleware' do |app|
app.config.middleware.insert 0, "HerokuRequestId::Middleware"
app.config.middleware.insert_before "ActionDispatch::RequestId", "HerokuRequestId::Middleware"
end
end
end

2 comments on commit 3952bb4

@jagthedrummer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this fix the deadlock problem you were seeing?

@jjb
Copy link
Owner Author

@jjb jjb commented on 3952bb4 Jun 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jagthedrummer yes, this fixed it! (this branch was just to get things working for me -- rack::runtime is an even better place, as discussed in the other thread)

Please sign in to comment.