ximate 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ximate/search.rb +2 -2
- data/lib/ximate/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: 45f9b78a6358932f5edbc70588c4c42bab314f44
|
4
|
+
data.tar.gz: 0bcd8a5ae3e56f067067fd02ff6595c695747df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5754a506c94ae1b102c62516e41390b65139110535dadf3791711ff3860dbaea2eda60c48a976123de345ef507c7b90e492ec59649c5b7a19cea82dc22dfd130
|
7
|
+
data.tar.gz: 55a0234704efef3c2e4d5cddae56606a3dbe025f7b3a62019d1fdfebbd3e995d6b93a72d0a9c0cd497a98d51cd1ebd1b70721072eaf68a17b30396dbd10fb68a
|
data/lib/ximate/search.rb
CHANGED
@@ -62,8 +62,8 @@ module Ximate
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
65
|
-
return
|
66
|
-
rel =
|
65
|
+
return where('1=0') if matches.empty?
|
66
|
+
rel = where('id>0')
|
67
67
|
rel.ranks = matches
|
68
68
|
rel.where("#{table}.id IN (#{matches.keys.join(',')})")
|
69
69
|
# select("*, #{gen_if_select(matches)} AS RANK").where("#{table}.id IN (#{matches.keys.join(',')})")
|
data/lib/ximate/version.rb
CHANGED