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:
|
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/pg_rails.rb
CHANGED
@@ -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
|
data/pg_rails/lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|