tallty_import_export 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tallty_import_export/export.rb +2 -0
- data/lib/tallty_import_export/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06f862bf1ae912a77b1e7a02d76fade118619343de44cbcff2b5f165756ea323
|
4
|
+
data.tar.gz: db83a7345b10d91e5018604ed08c24287e085930c96b7af66499d6333464f063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba25061c42d32c4396cbb88b9aae8ef7296b58a306c47037dd5c53cea9bde0d8df29f7ed373463d7f74596f78e73fecf3005aa02a2b449ab9d60f0313631bc63
|
7
|
+
data.tar.gz: 240105d66e1c3a009fb8f03b70a19cbb0307c3bbe2e611958e7cd019d332404bae5c75b681488595988996f2bc616aa4e445cc73f6bda6389b4ed55eb81e95ee
|
@@ -40,11 +40,13 @@ module TalltyImportExport
|
|
40
40
|
if @group_by.present?
|
41
41
|
if records.is_a?(Array)
|
42
42
|
records.group_by { |record| record.send(@group_by)}.each do |key, group_records|
|
43
|
+
next unless key.present?
|
43
44
|
@group_key = key
|
44
45
|
export_workbook workbook, group_records
|
45
46
|
end
|
46
47
|
else
|
47
48
|
records.group(@group_by).count.keys.each do |key|
|
49
|
+
next unless key.present?
|
48
50
|
@group_key = key
|
49
51
|
export_workbook workbook, records.ransack("#{@group_where}" => key).result
|
50
52
|
end
|