diff --git a/lib/bugsnag/middleware/warden_user.rb b/lib/bugsnag/middleware/warden_user.rb index 59c6af0d..6650aa52 100644 --- a/lib/bugsnag/middleware/warden_user.rb +++ b/lib/bugsnag/middleware/warden_user.rb @@ -21,7 +21,7 @@ def call(report) best_scope = warden_scopes.include?("user") ? "user" : warden_scopes.first # Extract useful user information - user = {} + user = { :warden_scope => best_scope } user_object = env["warden"].user({:scope => best_scope, :run_callbacks => false}) rescue nil if user_object # Build the user info for this scope