pg_rails 7.1.1.pre.2 → 7.1.1.pre.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c5ab91e5c32e537c33112965e6be68eb7d5992e236f27752a182af7cf584ff'
|
4
|
+
data.tar.gz: 32461e729fa13575fbd61f9c02e5907e06e6b8acabd18068db0c049483a83536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0caab961e097ce6a9b770fecbc02c179013987d20fdd016f44f2675084555b44ff700f94abe07f748fb4a55466614ef44c28758420881c096781936edbb9bb
|
7
|
+
data.tar.gz: 6652961ad489a6a699819874c79c69356f6a9f8882f1c4ed195556b16d8836c440886db77bee3f2a60f2fda6c07e9a68f525c2c91ceba9748c01caf89449e421
|
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
wb = xlsx_package.workbook
|
4
4
|
wb.add_worksheet(name: @clase_modelo.nombre_plural) do |sheet|
|
5
|
-
|
5
|
+
headers = atributos_para_listar.map { |a| @clase_modelo.human_attribute_name(a) }
|
6
|
+
headers.prepend 'ID interno'
|
7
|
+
sheet.add_row(headers)
|
6
8
|
|
7
9
|
@collection.decorate.each do |object|
|
8
10
|
array = atributos_para_listar.map do |att|
|
9
11
|
object.send(att)
|
10
12
|
end
|
13
|
+
array.prepend object.to_key
|
11
14
|
sheet.add_row array
|
12
15
|
end
|
13
16
|
end
|
data/pg_rails/lib/version.rb
CHANGED