backframe 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backframe/filter_sort.rb +1 -1
- data/lib/backframe/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: adfde44056f2f53e5d6c09418c6304ebab106877
|
4
|
+
data.tar.gz: 19e9c5cacfd069f8220a5ea8317ee87de6dc0e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffeed9efdc0eb63e24fd1438c8ec7de3686ec904fe17662b314f7641a652b415df19ccde44229705e45e8f7c39c997a808d6a6c27690ece95fabe18f273fd29d
|
7
|
+
data.tar.gz: 33072511bf8954f18564bb3f607cee1db40013f94d0af447c28ada198a9ef6036a99ce212364c73c1180e5fdad900d4c54dedbd98ce51241f7fd0b95866f452c
|
@@ -36,7 +36,7 @@ module Backframe
|
|
36
36
|
def filter_status(relation, filters, field, value)
|
37
37
|
if filters.key?(value)
|
38
38
|
relation = relation.where("\"#{self.table_name}\".\"#{field}\" = ?", value) if ["1","true"].include?(filters[value].to_s)
|
39
|
-
relation = relation.where("\"#{self.table_name}\".\"#{field}\"
|
39
|
+
relation = relation.where("\"#{self.table_name}\".\"#{field}\" != ?", value) if ["0","false"].include?(filters[value].to_s)
|
40
40
|
end
|
41
41
|
relation
|
42
42
|
end
|
data/lib/backframe/version.rb
CHANGED