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 +4 -4
- data/lib/active_record/filter.rb +1 -1
- data/lib/active_record/filter/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: c84e49f9cc530782e0526995e700902d7937fb7f
|
4
|
+
data.tar.gz: 1414458d78e798480fea0f2e0970e7a31b259597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90af8fd5f4e3fc6466ff416152e9141b920304f3f9b68f0b414b0326e5945ecbf575cde92a816079b9638f2ce8217325ae29f36e703296ff3128ae40e8747cb7
|
7
|
+
data.tar.gz: a12596a64b36cce8e3e4fbe92c13d74ca423b17da86a2860212befe3f08fbd2d720b52659b2611d2b49c656cd5cfea168fa6e10af5c2c8dbb7c9eee2b2cdb06d
|
data/lib/active_record/filter.rb
CHANGED
@@ -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(
|
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
|