clark_kent 0.10.2 → 0.10.4

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
  SHA256:
3
- metadata.gz: cbf3313f9e29e87b92ae0164acca19ef853c20dcd5f56e026d7c1a4b0d95feef
4
- data.tar.gz: e01e46a4d22389e43d2293ea2685e8d37dce4f6c673a4938dd38fda668eecd70
3
+ metadata.gz: c15055012528a4868ad2f0c5c2c5755f99f36e20b5f6997a1acd7b92fa0074dd
4
+ data.tar.gz: 1063fac92e5307544e29fc19c2d2a57dc75c380fd84074520aef774a083ad589
5
5
  SHA512:
6
- metadata.gz: 859816b3ab0e3df20810639b7747c4f5376d01fd5a8ab22c7d5798149b27b168e072e6a14054ee13d7c435f2d1904decbe02d33bf02c2f58e2c704624b699384
7
- data.tar.gz: e07dc2914b3a78a80a7409fa40938855bbb3335565602a4331eb221c644ebb2d3756c72e137de3159c15f66d597a0d4f5842e2ee3af81349e65f447d08235542
6
+ metadata.gz: 1c4e2198c55d6379b0bb1f22577dd49d344c5a43bfec43cd48a46d5ef2b1025c1a4074814c324cde95f71d4864dd94b9b08c706be6b72adbf5c4c8287d0c376d
7
+ data.tar.gz: bb9bac8b03c95e7b0b8985e71dbf4c1fed6272d8f79d69ac03a8a5319124fbe1e22f2036f31d1ba17d89cc4cdefa3d841e709d154b724b503ace00c428abd7bb
@@ -53,9 +53,11 @@ module ClarkKent
53
53
  report.extra_filters.each do |extra_filter|
54
54
  @extra_filters.push extra_filter
55
55
  end
56
- report.groups.each do |grouper|
57
- @groups.push grouper
58
- end
56
+ if count == false
57
+ report.groups.each do |grouper|
58
+ @groups.push grouper
59
+ end
60
+ end
59
61
  query = self.all
60
62
  if @report_email and @report_email.is_a? ClarkKent::ReportEmail
61
63
  params = @report_email.report_filter_params.symbolize_keys!.merge(params.symbolize_keys)
@@ -6,7 +6,7 @@
6
6
  <% options = case filter.collection.class.name
7
7
  when 'String', 'Symbol'
8
8
  clark_kent_user.send(filter.collection)
9
- when 'Array'
9
+ when 'Array', 'ActiveRecord::Relation'
10
10
  filter.collection
11
11
  end %>
12
12
  <%= select_tag filter.param,
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clark_kent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails