azahara_schema 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/azahara_schema/attribute.rb +1 -1
- data/lib/azahara_schema/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd521cb7f65eb4e2da7a431528c37f93118e64fe747a18b25f2b21d68cd71715
|
4
|
+
data.tar.gz: 22be1abf8722e4b5dce3540161ef6f0f3a39a8af458c84c16ab49b72e1a5cef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55554f1443c80a2bc5a2468a6a80789e6687e9bf72664c63ac1bed6c0d333986d32d50524deadb45dc25b33ea32903f0ddd3e04080c8d54ad39112d2870202b
|
7
|
+
data.tar.gz: e9c300edc0cafb02a0829f854075feddefd34385b05e1a1bc509b6191ec5681aa24045c50bab4364d79e73eec4774f42f345e9a22418bd8574aa5e69104293d8
|
@@ -77,7 +77,7 @@ module AzaharaSchema
|
|
77
77
|
values = values.collect{|v| format.sanitize_value(v) }
|
78
78
|
case operator
|
79
79
|
when '='
|
80
|
-
condition = arel_field.in(values.compact)
|
80
|
+
condition = arel_field.in(values.compact) unless values.compact.empty?
|
81
81
|
if values.include?(nil)
|
82
82
|
c_nil = arel_field.eq(nil)
|
83
83
|
condition = condition ? condition.or(c_nil) : c_nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azahara_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|