pg_rails 7.6.24.pre.3 → 7.6.24.pre.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
  SHA256:
3
- metadata.gz: 515caff33953b3d9a058e092be6152c0e9da6ca0fe740075c5fca7833bc39644
4
- data.tar.gz: 4ed2e3e33a0c6d39461c20f7a616c04f182c909f557125739bb065d4e92f58e9
3
+ metadata.gz: 24f6df5092e05945c72bd89a19aee27ab6bf20c5d6ea3920a5116a15c61b431e
4
+ data.tar.gz: 6b3761e5a283aa143f816d1008c1408baa8cab50bf164b4924c6ec60285b9ebb
5
5
  SHA512:
6
- metadata.gz: 5715a8c111e862a1e560f1e095b4f601700f841a2bdb76dad9594c33774b9c5d369947a553a63d5a12ddd0240f2c09380f6e04baee3db28715ae56e5f2ffbccb
7
- data.tar.gz: d96915a2c9aaf4210491829e80ecb0785d706375f9a3610e38676c9e1708dc01db22b89e5f8a4a6daad49ef934b6e3147a4b13a00cdabe4cd6f0adcbb23e9d1b
6
+ metadata.gz: c82bfc1e6138d70770cb161ffdaf06732bc90e23aa5d0d9181b736abd600d425af0a3d5979a22fbe7e7dc9d7aa8ac660c009c523e327489527d2594512ec9535
7
+ data.tar.gz: d827ee4b37c451ac8d0c0f4a28374ce1b6d0c0bbd2fab2b5ef36d919a49897e88b5be3772b1440146302edad2edb0f8fb4b24da28dda80bddbcf016c53a78990
@@ -9,20 +9,16 @@ module PgEngine
9
9
  end
10
10
 
11
11
  SUFIJOS = %i[f text].freeze
12
- def unsuffixed(attribute, sufijos = SUFIJOS)
12
+ def unsuffixed(attribute)
13
13
  ret = attribute.to_s.dup
14
14
 
15
- sufijos.each do |sufijo|
15
+ SUFIJOS.each do |sufijo|
16
16
  ret.gsub!(/_#{sufijo}$/, '')
17
17
  end
18
18
 
19
19
  ret
20
20
  end
21
21
 
22
- def unsuffixed_for_export(attribute)
23
- unsuffixed(attribute, %i[f])
24
- end
25
-
26
22
  def encabezado(input, options = {})
27
23
  if input.is_a? Array
28
24
  campo = unsuffixed(input.first)
@@ -14,7 +14,11 @@ wb.add_worksheet(name: @clase_modelo.nombre_plural) do |sheet|
14
14
 
15
15
  @collection.decorate.each do |object|
16
16
  array = atributos_para_listar.map do |att, _sort_by|
17
- object.send(unsuffixed_for_export(att))
17
+ field = unsuffixed(att)
18
+ if object.respond_to?(:"#{field}_text")
19
+ field = :"#{field}_text"
20
+ end
21
+ object.send(field)
18
22
  end
19
23
  array.append object.to_key
20
24
  sheet.add_row array
@@ -36,7 +36,7 @@ html
36
36
  = action_cable_with_jwt_meta_tag
37
37
 
38
38
  = stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
39
- = javascript_include_tag 'application', 'data-turbo-track': 'reload'
39
+ = javascript_include_tag 'application', 'data-turbo-track': 'reload', type: 'module'
40
40
  meta(name="actioncable-protocol"
41
41
  content="#{Rails.env.test? ? 'actioncable-v1-json' : 'actioncable-v1-ext-json'}")
42
42
  - if @rollbar_token.present?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.6.24-3'
4
+ VERSION = '7.6.24-5'
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.6.24.pre.3
4
+ version: 7.6.24.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso