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: f1a5b2d45d523d85b889cb132876fecfa47dcb5ec2215745a8a5f52f65cb64d1
4
- data.tar.gz: 2d3a6033834156a52fd1b2732fa5807da7c543a0ebac232ce1e588e2b8264595
3
+ metadata.gz: '08c5ab91e5c32e537c33112965e6be68eb7d5992e236f27752a182af7cf584ff'
4
+ data.tar.gz: 32461e729fa13575fbd61f9c02e5907e06e6b8acabd18068db0c049483a83536
5
5
  SHA512:
6
- metadata.gz: e8307c9947ada0096c2c631c688fa6b5117c48473bd263786af090814aed41641535a5a205d9bfbfceef9ced876b8814b09e7dbcb6176730dc339f4499921e48
7
- data.tar.gz: 5dff3bd33e3eb3adfe4f1ce205c34f6099ae1446cf58288aa411c863511531bab2aa40d476c04c6e41a2d5b8df72ff53bc9857f3fc6f6b311b4d620e1de6df12
6
+ metadata.gz: 1b0caab961e097ce6a9b770fecbc02c179013987d20fdd016f44f2675084555b44ff700f94abe07f748fb4a55466614ef44c28758420881c096781936edbb9bb
7
+ data.tar.gz: 6652961ad489a6a699819874c79c69356f6a9f8882f1c4ed195556b16d8836c440886db77bee3f2a60f2fda6c07e9a68f525c2c91ceba9748c01caf89449e421
@@ -65,6 +65,7 @@ input[type=datetime-local], input[type=datetime] {
65
65
  }
66
66
  }
67
67
  .listado td:has(.btn) {
68
+ // FIXME: rompe porque es una tabla y tiene que tener su propio display
68
69
  display: flex;
69
70
  justify-content: flex-end;
70
71
  gap: 4px;
@@ -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
- sheet.add_row(atributos_para_listar.map { |a| @clase_modelo.human_attribute_name(a) })
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.1.1-2'
4
+ VERSION = '7.1.1-3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.1.pre.2
4
+ version: 7.1.1.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso