graph_starter 0.14.2 → 0.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/graph_starter/assets/_form.html.slim +2 -2
- data/lib/graph_starter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b264704e785df780eded4d2a2ca3a240f96d6a3
|
4
|
+
data.tar.gz: 90bf2dec7c514d16f3c90b362e1774cc2848028a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c78263a3282cb46a91786226927ba6b892daf9a78f207a99313e94e0be13707d71903fb2b6ac4b47bc894ebe87bfff52a05630bf2bbe829390f74c3c706f908d
|
7
|
+
data.tar.gz: 3351e58f9e6717bce20e224a8b3df6b3be0a98a712b5d7a852e97d58af9a1a92db85134f5da79abb24550c4840d21ba983edc9ba5ccd5f482049d63fdd41b35c
|
@@ -27,11 +27,11 @@
|
|
27
27
|
label = name.to_s.humanize
|
28
28
|
|
29
29
|
- field_name = (association.type == :has_many ? "#{name.to_s.singularize}_ids" : "#{name}_id")
|
30
|
-
- options = target_class.as(:n).pluck(target_class.name_property, target_class.id_property_name)
|
30
|
+
- options = target_class.as(:n).pluck(target_class.name_property, target_class.id_property_name).sort_by {|pair| pair.inspect.downcase }
|
31
31
|
|
32
32
|
- html_options = {class: 'ui fluid search dropdown'}
|
33
33
|
- html_options[:multiple] = '' if association.type == :has_many
|
34
|
-
= f.select field_name, options, {}, html_options
|
34
|
+
= f.select field_name, options, {include_blank: 'Please select'}, html_options
|
35
35
|
|
36
36
|
javascript:
|
37
37
|
$('.ui.dropdown').dropdown()
|