lato 0.1.10 → 0.1.11

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: 7ab1d90b203dab6864e4120b6b3dd3ff44bb42c5b42b54fba70e55f982bb260b
4
- data.tar.gz: 676844d4597c20a7cb64cbaba297ccb55c4c0421b85da981e0fa94919ac2525b
3
+ metadata.gz: 5bd1de804af1f92a505d96cc38479be01ffa40b0df47057c407f12c927136d93
4
+ data.tar.gz: b30506ea8583ba135af5a2232530911bdc1e783b058151d6ea7500fd481991c1
5
5
  SHA512:
6
- metadata.gz: 5b97a95b0b51722a8416083779d2fa6ee3f87445c36c366fb0ab25659d7d84c65db470c939884ea75755bcbe8cd26669d86919128908d507f24a1e7ed5f59800
7
- data.tar.gz: 90bedf8377b7d4ba09de99d9fd8653239efdf3d53e0b633c9cba3c0680df7b6d22356addbdcbe7845cebac81e8cf75506b97f76d3dfd00af5784a76b424b5cdb
6
+ metadata.gz: c58d5ad0c8eb76bb98c6ebbcec616a5f3242527e2a1620a911a49ea1fd9fceb3ef1df64445a45935fb5d7c72947752aed1b84233039b33600f209cf9477472b0
7
+ data.tar.gz: 54517b2bbad2498725b9174ebddbe352d2a4d3084aef8175e2b33123eea10633d33dfe1e6b628cb1e9d21900037e7dd8b2b47475f887005ed7ed72f6eaa6fc30
@@ -75,7 +75,7 @@ module Lato
75
75
  # setup classes
76
76
  options[:class] ||= []
77
77
  options[:class].push(classes)
78
- options[:class].push('is-invalid') if form.object&.errors[key]&.any?
78
+ options[:class].push('is-invalid') if form.object && form.object.errors[key] && form.object.errors[key].any?
79
79
 
80
80
  # setup stimulus
81
81
  options[:data] ||= {}
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante