faceted_search 3.6.0 → 3.6.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: 9f3a631dcd6d16b556a25e2db756808ce7173708ccd02a23fc6854c5e8c30f01
4
- data.tar.gz: ea0745c3ed87fd105f497dadd007a8417a01c1cc6f2925e0c93fe0aaa3e208d9
3
+ metadata.gz: 4633222e5bf581e90266ca8760dc45b829ead22a1ead7ec2b2bf618184c62f0f
4
+ data.tar.gz: db09d9655daaf66365dcacf7f886cca41ca82b789c46a6f15303a7b7504d2ef2
5
5
  SHA512:
6
- metadata.gz: dbe3a9ae5256ba40b72fd9d7cd2568d41bcfa96c13c999652e3dfc55894c4eb5dd6fbf1b580e98bb79183243d9798f303e2122de481b3d47d0582ab18c1c0800
7
- data.tar.gz: d8eb1931049507e9f175c9c08c1e92ed883d87e1f29d21c039a80f50483158e55a75e6453b5c10cb8048af07867abc3e46a379423b42d832487b0a5bf8380b4c
6
+ metadata.gz: 660f10b2f9945c85a9a6b1ba298ff7a2ec1e9d092007bab2922773f31f005fd017ea270631026240006260089af083f2f66ff344d1682f6cd39ba6f9bb90fe1d
7
+ data.tar.gz: 9e72bb6ac253c60bce9527c649c5f598c6e14e4921f28b2a41b2e0ea0f868082d22238c49f883131a6e65ae4349263186c7d7cc6ec994211f302c504f77ea081
data/README.md CHANGED
@@ -43,6 +43,9 @@ Create a model defining your facets:
43
43
  filter_with_list :kinds, {
44
44
  habtm: true
45
45
  }
46
+ filter_with_list :style, {
47
+ habtm: false
48
+ }
46
49
  filter_with_tree :categories, {
47
50
  habtm: true,
48
51
  children_scope: Proc.new { |children|
@@ -18,7 +18,6 @@ module FacetedSearch
18
18
  # and return the modified scope
19
19
  def add_scope(scope)
20
20
  return scope if params_array.blank?
21
-
22
21
  habtm? ? scope.joins(name).where(name => { find_by => params_array })
23
22
  : scope.where(name => params_array)
24
23
  end
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '3.6.0'
2
+ VERSION = '3.6.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-01-09 00:00:00.000000000 Z
13
+ date: 2023-04-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.3.7
185
+ rubygems_version: 3.4.6
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Faceted search with Active Record