forty_facets 0.1.8.9 → 0.1.9.0
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: ad48e8c4f2338a87b29236fd94806a15f82da882ab7c754407cdb1795f608d15
|
4
|
+
data.tar.gz: e19407ae762c613e784f8ebfb9e802d4398aa38520ef3b942016d50926cf70ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9165e142d34aac61ce38eaac7efa70db5172496494e48082b5a9882345ba113850f2bda7ff066c2d7df76557555e59acf0b7286dd6f1e5d6b1e4d2eeb4473ee1
|
7
|
+
data.tar.gz: 005ef2414ddcadcf8c53d176f887386c17de905cf6f27a2ca03b9b90f5b326020cfce26fb062475ffdddf62c6f1a30e4ab79924f36c474fd47e308042a2d9ca7
|
@@ -2,7 +2,7 @@ module FortyFacets
|
|
2
2
|
class ScopeFilterDefinition < FilterDefinition
|
3
3
|
class ScopeFilter < Filter
|
4
4
|
def active?
|
5
|
-
definition.options[:pass_value] ? value.present? : '1'
|
5
|
+
definition.options[:pass_value] ? value.present? : value == '1'
|
6
6
|
end
|
7
7
|
|
8
8
|
def selected
|
@@ -28,7 +28,7 @@ module FortyFacets
|
|
28
28
|
search_instance.class.new_unwrapped(new_params, search_instance.root)
|
29
29
|
end
|
30
30
|
|
31
|
-
def add(value =
|
31
|
+
def add(value = '1')
|
32
32
|
new_params = search_instance.params || {}
|
33
33
|
new_params[definition.request_param] = value
|
34
34
|
search_instance.class.new_unwrapped(new_params, search_instance.root)
|
@@ -38,7 +38,5 @@ module FortyFacets
|
|
38
38
|
def build_filter(search_instance, value)
|
39
39
|
ScopeFilter.new(self, search_instance, value)
|
40
40
|
end
|
41
|
-
|
42
41
|
end
|
43
42
|
end
|
44
|
-
|
data/lib/forty_facets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forty_facets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Axel Tetzlaff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|