activerecord-filter 5.0.0.2 → 5.0.0.3

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: 68bc3dfb112ded5ee45418075110ef888aba01a5
4
- data.tar.gz: 73407b0438f5a6f71c9f8b3d9c2a4f83d60c778e
3
+ metadata.gz: c84e49f9cc530782e0526995e700902d7937fb7f
4
+ data.tar.gz: 1414458d78e798480fea0f2e0970e7a31b259597
5
5
  SHA512:
6
- metadata.gz: b9b0b4704b1700f97feb2697d2d0ccb6e32aeb9576f1b2aed4735627f4ccb7a9197706031e07fe547205f3c8e47ac1c4eb73e3dddfc97834607072b0cafffbf3
7
- data.tar.gz: 71dcd0b33b1d4d2dc17dd15eb00cf8eaf0bb29a5f35d77da8fbe7858d9368aa400d08255afed643522a87cc1926e441765fa7fa4915c0ce0a3bee16a71999e72
6
+ metadata.gz: 90af8fd5f4e3fc6466ff416152e9141b920304f3f9b68f0b414b0326e5945ecbf575cde92a816079b9638f2ce8217325ae29f36e703296ff3128ae40e8747cb7
7
+ data.tar.gz: a12596a64b36cce8e3e4fbe92c13d74ca423b17da86a2860212befe3f08fbd2d720b52659b2611d2b49c656cd5cfea168fa6e10af5c2c8dbb7c9eee2b2cdb06d
@@ -138,7 +138,7 @@ module ActiveRecord::Filter
138
138
  else where(table[column].eq(nil))
139
139
  end
140
140
  elsif value == nil
141
- where(table[column].eq(value).or(table[column].eq(nil)))
141
+ where(table[column].eq(nil))
142
142
  # when ''
143
143
  # # TODO support nil. Currently rails params encode nil as empty strings,
144
144
  # # and we can't tell which is desired, so do both
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Filter
3
- VERSION = '5.0.0.2'
3
+ VERSION = '5.0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.2
4
+ version: 5.0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy