flail 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flail/rails/action_dispatch.rb +9 -2
- data/lib/flail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb93e074d6c8b7418790a8a51d13d19970dbb4c6
|
4
|
+
data.tar.gz: bf73bc428d17265942df6e1d7f54d32480be7ffc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb5af026cc6b88333fb32c6b5314f1dc652308f8968799d2c79b2d7ad3d67bacbb8c4a2182df58335e420e4aaba0f3f2e0dce3168fc47ba4c1d31800a532eca
|
7
|
+
data.tar.gz: faaa1e4a23b9bd913b16772da762fb40e6693ba46a4376ec3625cf3460d88a289df5e22a181a61bd81596d61ff0b8869f92c90784529bd99b7e0cc1e481d5e18
|
@@ -8,8 +8,15 @@ class Flail
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module InstanceMethods
|
11
|
-
def render_exception(
|
12
|
-
|
11
|
+
def render_exception(request_or_env, exception)
|
12
|
+
_env = if request_or_env.is_a?(::ActionDispatch::Request)
|
13
|
+
request_or_env.env
|
14
|
+
else
|
15
|
+
request_or_env
|
16
|
+
end
|
17
|
+
|
18
|
+
Flail::Exception.new(_env, exception).handle!
|
19
|
+
|
13
20
|
super
|
14
21
|
end
|
15
22
|
end
|
data/lib/flail/version.rb
CHANGED