auto_select2 0.5.1 → 0.5.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
  SHA1:
3
- metadata.gz: d92f0cd0f5e13040a59c9347457d088a64f88964
4
- data.tar.gz: 8edac75b3e26b673c0c5f9e090a2f7aac5a9615d
3
+ metadata.gz: e7f7e1fa606243b4d82a503343c9c0d4532e499a
4
+ data.tar.gz: 7f923bb89d70ba76c2276e38d033379ac9a376ed
5
5
  SHA512:
6
- metadata.gz: b96a619185b3099ba8c580be7e3d8267d353b09762f0554d519dd22f53e9b3f198a25ba0f92792f71d55101ce356acd88742d5816c147a39f1a02acbb21510b7
7
- data.tar.gz: 1a0b8a0a5cdcd21f3b20b8fb9c4d96636a0543e4624318a54c92e48a95a90a9fa031605ac0773a3a0ade381594d6b1f49bbf47836b88a6935783c47d9275b9a9
6
+ metadata.gz: 117baee22614bae20ad9eae43ef651c7b21a29673e4509c49ed9ecc165cffed9138f5c202ad159aab7348ef7cf1ffe77559e4ec7893cb0210b28b65c8993666f
7
+ data.tar.gz: cca87d16826b15918e7a6079e8c56403648b566e5546590c63b95b8e9ca0001765dc221b31e330f91105ad125c85fbe95243ce1d8dc39d8eadb05faeb0adc81e
@@ -66,8 +66,8 @@ module AutoSelect2
66
66
 
67
67
  def get_init_values(searched_class, ids, options = {})
68
68
  hash_method = options[:hash_method]
69
- text_columns = options[:default_text_column]
70
- id_column = options[:default_id_column] || searched_class.primary_key
69
+ text_columns = options[:text_columns]
70
+ id_column = options[:id_column] || searched_class.primary_key
71
71
  ids = ids.split(',')
72
72
  if ids.size > 1
73
73
  result = []
@@ -21,6 +21,8 @@ module AutoSelect2
21
21
  total: default_count
22
22
  }
23
23
  else
24
+ options[:id_column] = @id_column
25
+ options[:text_columns] = @text_columns
24
26
  get_init_values(
25
27
  @searchable_class,
26
28
  options[:item_ids],
@@ -1,3 +1,3 @@
1
1
  module AutoSelect2
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_select2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Lisichkin