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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5c8b54d7e8a1916651b378cd080483bc0e8b43b
4
- data.tar.gz: 74234004cae78299a34c1a9dc7130c2c86950556
3
+ metadata.gz: adfde44056f2f53e5d6c09418c6304ebab106877
4
+ data.tar.gz: 19e9c5cacfd069f8220a5ea8317ee87de6dc0e0e
5
5
  SHA512:
6
- metadata.gz: 1938aaa64721109d5e4513d13a89ae05cd6658daafdd3c2d9c1c37ed6592f01c6c0ff584f4e434775992bfb1b65eabb01c6d87a4717622597dd9a5388b0ba766
7
- data.tar.gz: 00b77137e69fedb50e6685a2cafb55fffb47db593b587761361b33f1e9912796e2b1e2fce9ccca3bffa9e13deeb773086478760ff8d7c79526a8a68e837d3a25
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}\" = ?", value) if ["0","false"].include?(filters[value].to_s)
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
@@ -1,3 +1,3 @@
1
1
  module Backframe
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backframe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Kops