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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82e96ab1d1dc1c812448aea2c615f8fb56b0fd9e
4
- data.tar.gz: d17981b7e6a2fd9466c2970a76033b8d7afde4d0
3
+ metadata.gz: 7d2bd3b7486dfe68f0c7ea0991fb76ec906dc294
4
+ data.tar.gz: 9b264238d465da658ee2241e41c02064b0fd6b17
5
5
  SHA512:
6
- metadata.gz: b742e1983aea592a5d9097bff44015c275958ea49447d537e21e9a8595cb83e61d81e1558198f2c2cdf5048914b8226ed0c460b32373ecf322cb9a74f5d29b54
7
- data.tar.gz: e61c91a59a22567ed44066c19149e52b6dfd140d3558de7bfc67e6b5827d1e83fb812b40f61d1f544b13b2f2c380d37adc3d2154959bddcbde15d8dac5fa8609
6
+ metadata.gz: d93026ce0b36aa4fb5a45ac32b4f0d37a1aee296a40be96a63a1c3ab1e18ed790d029e6e2e936b399aa53c5c17bb0e7c3e251a34f14c4fb20cbe23201c074ad2
7
+ data.tar.gz: 805a3dbffd73dd44027fce19520a68aeade214461a2d7bd1eca34b13e35d631d101d8efd9bb8e0006d0f02c234d3c750831bd8129b550758c80b895012a96f3a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- proactive_support (0.0.4)
4
+ proactive_support (0.0.5)
5
5
  activerecord (>= 3)
6
6
 
7
7
  GEM
@@ -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}
@@ -1,3 +1,3 @@
1
1
  module ProactiveSupport
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proactive_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Frank