openteam-commons 0.3.3 → 0.3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openteam-commons/engine.rb +5 -1
- data/lib/openteam-commons/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: 91bad3359d8397d316c24a04f1e1b81e7336aa15
|
4
|
+
data.tar.gz: 3787c8b9f2310c19fad25ca30a8b94f013a9e350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f30ab22539d18517d29120d7a1e38cd4e2c815be0d6541bc5c02534d0c5ea340cf26f4ec41c49c6a62e46711321f4f99b44962aa062b11b49a9b21b2bba86eb6
|
7
|
+
data.tar.gz: 2c83763036de4cb943e5b17044e3e441f33bf16456939b1c4170f3614506e2850ddf3fe7bcbc90f18111f6dc352376224ee6348171ac64237aa609d02277ef8b
|
@@ -58,8 +58,12 @@ module OpenteamCommons
|
|
58
58
|
config.environment = Rails.env
|
59
59
|
config.ignore_environments = %w[development test]
|
60
60
|
end
|
61
|
+
ignore_errors = [
|
62
|
+
'ActiveRecord::RecordNotFound',
|
63
|
+
'ActionView::Template::Error',
|
64
|
+
]
|
61
65
|
Airbrake.add_filter do |notice|
|
62
|
-
if notice[:errors].any? { |error| error[:type]
|
66
|
+
if notice[:errors].any? { |error| ignore_errors.include? error[:type] }
|
63
67
|
notice.ignore!
|
64
68
|
end
|
65
69
|
end
|