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: b05880ae4efef4a5609afd7b2e722d1080f34975dfc30fba718c315288183c42
4
- data.tar.gz: 77ada8099f446b1f700a2d658e426ac2579302f751e282f133a0dcb77b279815
3
+ metadata.gz: a00ee7abe7a5bfeca31f3aea980d0531baa148aa801568d6f41bf24cbf793eba
4
+ data.tar.gz: 50fcf18ad276a1be3aa130db4a3120377ee4e605267e0c49416efd7dca57f3cc
5
5
  SHA512:
6
- metadata.gz: 67e2e272267f0f12ddf35a17ab95d49043969ce4f4ccfb193c8640906ebe14eba6385778f6794523ed07f9cc0e86d8f24f51a43bad514580139c62dffdf42d5d
7
- data.tar.gz: b46640f9d513ce67fa3519fa4c30928b4743d5e0fda32988b5c3568a4f85902d87a404bcc99effbe900a06bdbc8c9856a7c2074934b82f08ba49c071de563cc7
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
- pg_warn "Not base errors en pg_form: #{object.errors.details}. Record: #{object.inspect}", :debug
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 invalidFields = document.querySelector('.form-control.is-invalid,.form-select.is-invalid')
17
- if (!invalidFields) {
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')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.30'
4
+ VERSION = '7.0.8-alpha.31'
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.30
4
+ version: 7.0.8.pre.alpha.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso