index_for 0.3.2 → 0.3.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: 181813155c5638c7fd110640f99c9d36bb75de90
4
- data.tar.gz: 75092c0750b6d76c5738209bac2afced08432e46
3
+ metadata.gz: a5ba163e0ba9541cb7f976e2a1bab589ec707124
4
+ data.tar.gz: d0f92414f4741e43e8c489212ffe5c658a5c3ee1
5
5
  SHA512:
6
- metadata.gz: f880f014e3db919294bb2b5b6112f6fe4f14348e75a96948512d38c1de146180e240048b9522ff251e6bcaa0c13c29fb17e1d10ae79a6e5748ae2ab6cc0e789a
7
- data.tar.gz: 0a7a161772673a5647ef3d3317262a148f3b112ca654f77b185eb4df1ebf34ce052f5ce439174c56a66097ab18facceeda6b0f4ba5c3b68ab505da8e2db48525
6
+ metadata.gz: bbe6308df69896de306ededd2ccc51bc3d1d5442c676a44c45b95d69c9640f3d28f1dfc7c734910d05fbbb70ed5ed54a3ed78d2e911e5ca091a5670977190345
7
+ data.tar.gz: 9d91c4e420c6d8f31c2ac60972da970af3d6f169143519235998168fe65b0f1d65744fb7818f6caea29143a57fe520e2d448f5caeec260d38b47b20a74cb6dbb
@@ -30,7 +30,7 @@ module IndexFor
30
30
  sortable_field = parse_option(options[:sortable] || true, field_name)
31
31
  sortable_fields.merge!(field_name => sortable_field) if sortable_field
32
32
  searchable_field = parse_option(options[:searchable] || false, field_name)
33
- searchable_fields << searchable_field if searchable_field
33
+ searchable_fields.concat(Array.wrap(searchable_field)) if searchable_field
34
34
  filterable_field = parse_option(options[:filterable] || false, field_name)
35
35
  filterable_fields.merge! filterable_field if filterable_field
36
36
  nil
@@ -1,3 +1,3 @@
1
1
  module IndexFor
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel