Skip to content

Commit

Permalink
Merge pull request #51 from MindscapeHQ/affected-user-middleware-orde…
Browse files Browse the repository at this point in the history
…ring-fix

Need to insert the affected user *before* reporting the exception
  • Loading branch information
nikz committed Jan 7, 2015
2 parents 0d68d62 + 34d11a7 commit 1af3e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/raygun/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Raygun::Railtie < Rails::Railtie

# Affected User tracking
require "raygun/middleware/rails_insert_affected_user"
app.config.middleware.insert_after Raygun::Middleware::RackExceptionInterceptor, "Raygun::Middleware::RailsInsertAffectedUser"
app.config.middleware.insert_before Raygun::Middleware::RackExceptionInterceptor, "Raygun::Middleware::RailsInsertAffectedUser"
end

config.to_prepare do
Expand Down

0 comments on commit 1af3e84

Please sign in to comment.