Fix middleware
Merge pull request #74 from bugsnag/rails2

Fix middleware