hotwire_combobox 0.2.2 → 0.2.3
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: 375e5d8a06acd3bfb37fda548dcbaf55c097dafddf6511d33292ee424c267e92
|
4
|
+
data.tar.gz: 334608cf151572af945be3f9cf17598ccbf9b1808580c1cb57e2ea8e24fba246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a39403f378b1be54d167ed15e4006e96751c19ab71c3c7f60414c3b13598f861fb2cbc7611995775f804a1caadcc0849fc89f68dc4761777a015acf57e1ad19
|
7
|
+
data.tar.gz: 1618b436e6c19922b32ce986f6f5103676e206eb9d04c868cfa5bfd6b9a84dd62dd65c164dd2072ab355e62d951e91610dfb9043fe72e14432ec2e9c6fcb45b4
|
@@ -248,7 +248,7 @@ class HotwireCombobox::Component
|
|
248
248
|
end
|
249
249
|
|
250
250
|
def association_exists?
|
251
|
-
form_object&.
|
251
|
+
association_name && form_object&.respond_to?(association_name)
|
252
252
|
end
|
253
253
|
|
254
254
|
def form_object
|
@@ -300,7 +300,7 @@ class HotwireCombobox::Component
|
|
300
300
|
def hidden_field_value
|
301
301
|
return value if value
|
302
302
|
|
303
|
-
if form_object&.defined_enums&.try
|
303
|
+
if form_object&.try(:defined_enums)&.try(:[], name)
|
304
304
|
form_object.public_send "#{name}_before_type_cast"
|
305
305
|
else
|
306
306
|
form_object&.try(name).then do |value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotwire_combobox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Farias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.5.
|
147
|
+
rubygems_version: 3.5.9
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Accessible Autocomplete for Rails apps
|