form-select 0.3.1 → 0.3.2

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: c2aa026cc47cb3d1716ea9412beb650b14560aa3f0a9b0be3832e67f46ece1ba
4
- data.tar.gz: 391cb70caa3f0f1177a94816eca9b715228ae5ed0e1594b7e568803f2a5c5029
3
+ metadata.gz: f8d4780b1cb128f8c15ad0481b6bcbeba834b62c021658e533256e84399a9852
4
+ data.tar.gz: 0f0928c2fbbdce9ed80a18cf477c54ccd787e6f4ca0abd0eeafe8bda5efb30d5
5
5
  SHA512:
6
- metadata.gz: 70f48c5a4b0623a5adc55f472c3c133a6e16b4d9f8a1734cd70d54641f7ff0b8420c06dcc387d9a58e8026aedfe4bab2c6cadf955ddb3680d66127e06c28aa64
7
- data.tar.gz: 63b45af7388169fd7a07319cdcc67c5d033ae6200c355811c7a641ded07167fd36aad95f10f014b49031e3621b6ed4a7f5c68cd7ffa0e28bee8c6a706741f42e
6
+ metadata.gz: c8c5142179030df1226cf50073b6badf52010994850bf26755c756489ba5bf6ba013e73ac580d9d3bd8e56d61075f3b38a061c52fb6d314a0f039e61661eec9d
7
+ data.tar.gz: 74747e1f98b817e4ce220b40b16ac9729137914f8f0c9f13bc12c84b68b1876abec1e54e130b67985e40a699ab2c6bd76abf456c1b82f74fdb1d9ae1be841bc6
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "form_select/version"
4
- require "form_select/engine"
5
4
  require "form_select/model"
5
+ require "form_select/engine"
6
6
 
7
7
  module FormSelect
8
8
  end
@@ -34,7 +34,7 @@ module FormSelect
34
34
 
35
35
  if field.blank?
36
36
  text_method ||= method
37
- value_method ||= primary_key
37
+ value_method ||= :id
38
38
  else
39
39
  field = [field] unless field.is_a?(Array)
40
40
  text_method = field.first
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FormSelect
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form-select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.7.6
76
+ rubygems_version: 2.7.8
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Helper of form select options