effective_bootstrap 1.19.3 → 1.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/form_inputs/select.rb +6 -0
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d38e3aeed6ac436788cde46ed41d2526d0965fb8c07c91671bfa2d348d66d72e
|
4
|
+
data.tar.gz: 3dc6dab7793b5979a2da94f373b861e381bec4f43af7ae9d0bd9c207446b289b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a884258ed006d5282fd2e37509232e203fbaffc5357a3aa94deeb8eef360edff0b9a2b0223756c540019e5b08d4db0e0c23b906f2a8048d6b00fd559ae01bba1
|
7
|
+
data.tar.gz: eaf25457e6a73a2c664286c074cacf32e99010ebb591c1573a45d11cf9853c36b1e035587a6f26b9d985ac05d6634deb078b273ee88eb826c72522c5574a541a
|
@@ -65,6 +65,12 @@ module Effective
|
|
65
65
|
def assign_options_collection!
|
66
66
|
super
|
67
67
|
|
68
|
+
if ajax? && !include_null
|
69
|
+
if options_collection.kind_of?(Array) && options_collection.first.respond_to?(:to_select2)
|
70
|
+
@options_collection = options_collection.map { |obj| [obj.to_select2, obj.to_param] }
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
68
74
|
return unless include_null
|
69
75
|
|
70
76
|
# Check for singles - transform the array
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|