rails_bootstrap_error_renderer 1.0.0 → 1.1.0
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: 8c44e060114bada7ec579e78ce4327ff15b7085c44a6942f76c672015d14af1c
|
4
|
+
data.tar.gz: 31e5cb7550c6698dec8556e8623463ab776fccef4c3b5b3911c503eb64acf6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0c07b2ad4e1c0b2dee2c450820e8402854f87ea264abac2ac13a99b232f857e13a0414a819a945f13698f4d6364f3f5e6d2f63c2d87167e88514e7516020a95
|
7
|
+
data.tar.gz: b741d014d6bb08a134354137fbee4c6825ddfb316868085fa609542532c24ecbb9bdfb3eab5657b1a22465bffac5e35c197c05cfefe0c4f32fa505db61db85e6
|
@@ -20,8 +20,9 @@ module RailsBootstrapErrorRenderer
|
|
20
20
|
def self.render_for_element(element, instance)
|
21
21
|
element.add_class("is-invalid")
|
22
22
|
if applicable_input? element
|
23
|
+
msgs = Array.wrap(instance.error_message).map { |m| %(<div class="invalid-feedback">#{m}</div>) }.join("\n")
|
23
24
|
instance.raw(
|
24
|
-
%(#{element.to_html}
|
25
|
+
%(#{element.to_html}\n#{msgs})
|
25
26
|
)
|
26
27
|
else
|
27
28
|
instance.raw element.to_html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_bootstrap_error_renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Sterba
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|