faceted_search 3.5.7 → 3.5.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 265734657b1546de2a80bb631adf099b8758bedd7baf5f4af71a3c266cbf2547
|
4
|
+
data.tar.gz: 66f75f2e72f13bb7bb67b94d613c4597a866e8cba1c1f2dc789cbae542f851a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de25113088db0880b13fa1aef84d86b03fe88572e54f334c7b2c7bcff4e6831a87d253c1cbb14f9483167ca5edc2ad041e34dbb8773aff732fd080ddc56fff58
|
7
|
+
data.tar.gz: e687d54f22dbb7d1b00a897268b07bb5a51de83a7980dbb1f190df105c381733f1f907031490b9da6cf3bd004867f45b9cc70dd42efb3c59cf251e084838b22d
|
@@ -29,7 +29,8 @@ module FacetedSearch
|
|
29
29
|
@values ||= begin
|
30
30
|
joined_table = facets.model_table_name.to_sym
|
31
31
|
results = params_array.blank? ? facets.results : facets.results_except(@name)
|
32
|
-
source.all.joins(joined_table)
|
32
|
+
values = source.all.joins(joined_table)
|
33
|
+
values.where(joined_table => { id: results }).or(values.where(id: params_array)).distinct
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|