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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59433788d3bca6a1726e485e7b93ac5ae86c3f92
4
- data.tar.gz: ec2570c2b1d5214926547ee3ac505b7387b823e8
3
+ metadata.gz: 2b264704e785df780eded4d2a2ca3a240f96d6a3
4
+ data.tar.gz: 90bf2dec7c514d16f3c90b362e1774cc2848028a
5
5
  SHA512:
6
- metadata.gz: 8ab69c923854447889477188c49f64bc1f40cae97ab982b51b74f24d098ab519b595932a7f555635f46cdd57153c58f7fbdd7a034c43b1d810c2805c6514fd23
7
- data.tar.gz: a212a0e3e7f36e030630dda1f26552c102e6eaaa560a63ed32f20257da5239fec2729b027123b778b87526ea71e75f567d9caf1e19d35bfd9c19f6d7a76a15a6
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()
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.14.2"
2
+ VERSION = "0.14.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood