filter_form 0.4.8 → 0.4.9
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 -4
- 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: 86d4a000a3b09a1b6b855b024360d457c86aad5f
|
4
|
+
data.tar.gz: 033bb10c05331663961be58e34bfc93fbc21cbb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d05c9e72b1b5631bf1bf98860ea934e1648957b5fe1281acba4417935fdbfa74d687a86076d7ce7b9569042bfdc388e9c30b2e3195ceba4a560aef96c27bde
|
7
|
+
data.tar.gz: 6753bcd6241eec48b6ece01f5203dbe6ae372d424b14eb6b904a56c251a521c72270952f178ecd25e950eaa21c264a3ccf91f548d27dc5a7372bd32072d57a4d
|
@@ -60,11 +60,12 @@ module FilterForm
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def object_condition
|
63
|
-
|
64
|
-
|
65
|
-
result.select { |condition| condition.predicate.name == predicate.to_s }.first
|
63
|
+
if options[:predicate_selector]
|
64
|
+
object.base.conditions.select { |condition| condition.a.first.name == input_attribute_name.to_s }.first
|
66
65
|
else
|
67
|
-
|
66
|
+
object.base.conditions.select do |condition|
|
67
|
+
condition.a.first.name == input_attribute_name.to_s && condition.predicate.name == predicate.to_s
|
68
|
+
end.first
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
data/lib/filter_form/version.rb
CHANGED