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 +4 -4
- data/pg_engine/app/lib/pg_form_builder.rb +2 -4
- data/pg_rails/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2090fbe898d25e227b13261a788564b15149cc5e732bd73609b9fa1ca7dd2f0
|
4
|
+
data.tar.gz: 5024586aeba0ceaa65887565aa638762e70807e8db8518094b2f3f5085941902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/pg_rails/lib/version.rb
CHANGED