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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f6df5092e05945c72bd89a19aee27ab6bf20c5d6ea3920a5116a15c61b431e
|
4
|
+
data.tar.gz: 6b3761e5a283aa143f816d1008c1408baa8cab50bf164b4924c6ec60285b9ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
12
|
+
def unsuffixed(attribute)
|
13
13
|
ret = attribute.to_s.dup
|
14
14
|
|
15
|
-
|
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
|
-
|
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?
|
data/pg_rails/lib/version.rb
CHANGED