pg_rails 7.0.8.pre.alpha.30 → 7.0.8.pre.alpha.31
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: a00ee7abe7a5bfeca31f3aea980d0531baa148aa801568d6f41bf24cbf793eba
|
4
|
+
data.tar.gz: 50fcf18ad276a1be3aa130db4a3120377ee4e605267e0c49416efd7dca57f3cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7985f3fe0d46e273c32f158868a14e2ebef310e9ccef8150e87bf3b0b7f7e4ad33f7091845bae3d2e92f25a51a39140c50a88ae35c9370a9d156b660a991f97
|
7
|
+
data.tar.gz: 67fec15a55b0f73c7dd621f5f262da31e29bc14c348918a3aa3429801a74f182bfb25673b377db43a8d8989bc793d224969f6f56bf33955cb5314d3468caa1b9
|
@@ -45,7 +45,8 @@ class PgFormBuilder < SimpleForm::FormBuilder
|
|
45
45
|
return unless not_base_errors
|
46
46
|
|
47
47
|
# TODO!: poder pasar un block para que no se ejecute si no se va a loguear por el log level
|
48
|
-
|
48
|
+
# TODO: quizá esta warning loguearla pero no mandarla a rollbar por si son demasiadas
|
49
|
+
pg_warn "Not base errors en pg_form: #{object.errors.details}. Record: #{object.inspect}", :warn
|
49
50
|
|
50
51
|
"<span class='not_base_errors' data-errors='#{object.errors.details.to_json}'></span>"
|
51
52
|
end
|
@@ -13,8 +13,8 @@ export default class extends Controller {
|
|
13
13
|
const notBaseErrors = this.element.querySelector('.not_base_errors')
|
14
14
|
|
15
15
|
if (notBaseErrors) {
|
16
|
-
const
|
17
|
-
if (!
|
16
|
+
const invalidFeedback = document.querySelector('.invalid-feedback')
|
17
|
+
if (!invalidFeedback) {
|
18
18
|
console.error(notBaseErrors.dataset.errors)
|
19
19
|
Rollbar.error(notBaseErrors.dataset.errors)
|
20
20
|
const errorTitle = this.element.querySelector('.error-title')
|
data/pg_rails/lib/version.rb
CHANGED