proactive_support 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/helpers/proactive_support/flags_helper.rb +2 -1
- data/lib/proactive_support/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: 7d2bd3b7486dfe68f0c7ea0991fb76ec906dc294
|
4
|
+
data.tar.gz: 9b264238d465da658ee2241e41c02064b0fd6b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d93026ce0b36aa4fb5a45ac32b4f0d37a1aee296a40be96a63a1c3ab1e18ed790d029e6e2e936b399aa53c5c17bb0e7c3e251a34f14c4fb20cbe23201c074ad2
|
7
|
+
data.tar.gz: 805a3dbffd73dd44027fce19520a68aeade214461a2d7bd1eca34b13e35d631d101d8efd9bb8e0006d0f02c234d3c750831bd8129b550758c80b895012a96f3a
|
data/Gemfile.lock
CHANGED
@@ -2,10 +2,11 @@ module ProactiveSupport
|
|
2
2
|
module FlagsHelper
|
3
3
|
def get_flag_groupings(customer_id = nil, filter_transients = true)
|
4
4
|
flags = {}
|
5
|
-
ar = ::ProactiveSupport::Flag.where(is_active: true)
|
5
|
+
ar = ::ProactiveSupport::Flag.includes(:customer).where(is_active: true)
|
6
6
|
ar = ar.where(customer_id: customer_id) if customer_id
|
7
7
|
ar = ar.filter_transients if filter_transients
|
8
8
|
ar.each do |f|
|
9
|
+
next if customer_id.nil? && (f.customer.nil? || f.customer.is_deleted)
|
9
10
|
flags[f.level] ||= {}
|
10
11
|
flags[f.level][f.source] ||= {}
|
11
12
|
flags[f.level][f.source][f.identifier] ||= {message: f.message, count: 0, transients: 0}
|