pg_rails 7.0.8.pre.alpha.27 → 7.0.8.pre.alpha.28

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: 985cc55b4ff43af3479e08cd3d7ae868a065d42cc6f6aae0493609bda38d9fda
4
- data.tar.gz: 335191165185260bc86fcc0adfec689470dd3abe5a88ad153187977f4b16b5de
3
+ metadata.gz: c2090fbe898d25e227b13261a788564b15149cc5e732bd73609b9fa1ca7dd2f0
4
+ data.tar.gz: 5024586aeba0ceaa65887565aa638762e70807e8db8518094b2f3f5085941902
5
5
  SHA512:
6
- metadata.gz: 9ff8d46bc53fa905b023a2cce88a24555129e7ee4cc146c0c58038c2a35046744be61750e8ef2d73b5d606f3dbb7396cecbbf218ba947bd327991073ae01c788
7
- data.tar.gz: 032aa328bfc8a622cadb3f5cd2c914cf9a870c35c2d2aabf8c1d8fcb8f501b0d0561e123d63364c897856392507bb001d155a0e7a00b0cd7916fb6b49f3fc64a
6
+ metadata.gz: 0b97d2de94a3db6ab66be03341ce2df03c1632fa7e13a7435619202a5f3cb0d71ffa537d30add4f997112d2680b87839d26bde254c997c46fd660a8abdae40ee
7
+ data.tar.gz: 4cf0d683b00d0a3e548c823c16b273cb2e9e12206d8baf6b2b821f09f9a031b1eebadd37abf962297310ddc70fd2092fdab081a6acabf9bd7e3471aecb753c73
@@ -34,7 +34,7 @@ class PgFormBuilder < SimpleForm::FormBuilder
34
34
 
35
35
  all_errors_tag = build_all_errors_tag unless base_tag
36
36
 
37
- "#{title}#{base_tag}#{all_errors_tag}"
37
+ "#{title}#{base_tag}#{all_errors_tag}".html_safe # rubocop:disable Rails/OutputSafety
38
38
  end
39
39
 
40
40
  def build_all_errors_tag
@@ -47,9 +47,7 @@ class PgFormBuilder < SimpleForm::FormBuilder
47
47
  # TODO!: poder pasar un block para que no se ejecute si no se va a loguear por el log level
48
48
  pg_warn "Not base errors en pg_form: #{object.errors.details}. Record: #{object.inspect}", :debug
49
49
 
50
- # rubocop:disable Rails/OutputSafety
51
- "<span class='not_base_errors' data-errors='#{object.errors.details.to_json}'></span>".html_safe
52
- # rubocop:enable Rails/OutputSafety
50
+ "<span class='not_base_errors' data-errors='#{object.errors.details.to_json}'></span>"
53
51
  end
54
52
 
55
53
  def mensaje
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.27'
4
+ VERSION = '7.0.8-alpha.28'
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.0.8.pre.alpha.27
4
+ version: 7.0.8.pre.alpha.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso