filter_form 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filter_form/input_options/base.rb +5 -1
- data/lib/filter_form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd311392d40b8a5fb6ffd62044f2425cd1d6a352
|
4
|
+
data.tar.gz: da2e2681ca34032ce080504dd33e595c04cd1fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21dce163437993123bbf88198e980f736911d74394f1501efbcaac3397d421b0684684d05ab5a6e83e91d88dd86e91388055c6a7dc8a54378a76949fe917d940
|
7
|
+
data.tar.gz: fb9005fd217ed6f10ae248cda5323ff496dacf86b656af9b04f03292c62450f39eea496792845b1069dbe59818280585a1dc11b2f817bbedfc3f0fe014a50117
|
@@ -33,7 +33,11 @@ module FilterForm
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def current_predicate
|
36
|
-
|
36
|
+
if object.base.conditions.any?
|
37
|
+
object.base.conditions.first.predicate.name
|
38
|
+
elsif options[:predicate_selector]
|
39
|
+
predicate
|
40
|
+
end
|
37
41
|
end
|
38
42
|
|
39
43
|
def input_class
|
data/lib/filter_form/version.rb
CHANGED