pg_rails 7.0.8.pre.alpha.29 → 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: 693564c63bb61c878087db5c4acd52851378ba6a839004e97bd099291988f7e6
4
- data.tar.gz: a709a829417768f1ab6c27e840396395920186e872f28a25063b13dd81027bd0
3
+ metadata.gz: a00ee7abe7a5bfeca31f3aea980d0531baa148aa801568d6f41bf24cbf793eba
4
+ data.tar.gz: 50fcf18ad276a1be3aa130db4a3120377ee4e605267e0c49416efd7dca57f3cc
5
5
  SHA512:
6
- metadata.gz: '029e2473f5247d57ac72824aa2c95823dc5862b27e8341fc9e7f0e3124a3bc22634b6ad7ee6f5ebdb340643c8fc8c4f7a905ed92f3bb2502e2eb1c4b68233fd6'
7
- data.tar.gz: 5bedfa1c3883599c2b67f99ed727804d0d9f97b852e4e8aa92c0e9778555e79e79aa6e0049e1e41dfb1ab0148fd10fc29a5c9182983caf75d735ebacdf5fa327
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,6 +1,6 @@
1
1
  require "#{__dir__}/../../pg_engine/lib/pg_engine"
2
2
  require "#{__dir__}/../../pg_associable/lib/pg_associable"
3
- require "#{__dir__}/../../pg_scaffold/lib/pg_scaffold"
3
+ require "#{__dir__}/../../pg_scaffold/lib/pg_scaffold" if Rails.env.local?
4
4
  require "#{__dir__}/../../pg_layout/lib/pg_layout"
5
5
 
6
6
  module PgRails
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.29'
4
+ VERSION = '7.0.8-alpha.31'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.29
4
+ version: 7.0.8.pre.alpha.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails