errplane 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/errplane/black_box.rb +5 -5
- data/lib/errplane/version.rb +1 -1
- metadata +1 -1
data/lib/errplane/black_box.rb
CHANGED
@@ -12,12 +12,12 @@ module Errplane
|
|
12
12
|
|
13
13
|
def initialize(params = {})
|
14
14
|
@exception = params[:exception]
|
15
|
-
@params = params[:params] || {}
|
16
|
-
@session_data = params[:session_data] || {}
|
15
|
+
@params = params[:params] || params["rack.request.query_hash"] || {}
|
16
|
+
@session_data = params[:session_data] || params["rack.session"] || {}
|
17
17
|
@controller = params[:controller]
|
18
|
-
@action = params[:action]
|
19
|
-
@request_url = params[:request_url] || params["
|
20
|
-
@user_agent = params[:user_agent]
|
18
|
+
@action = params[:action] || params["REQUEST_PATH"]
|
19
|
+
@request_url = params[:request_url] || params["REQUEST_PATH"]
|
20
|
+
@user_agent = params[:user_agent] || params["HTTP_USER_AGENT"]
|
21
21
|
@custom_data = params[:custom_data] || {}
|
22
22
|
end
|
23
23
|
|
data/lib/errplane/version.rb
CHANGED