ximate 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ximate/search.rb CHANGED
@@ -54,7 +54,7 @@ module Ximate
54
54
  end
55
55
  end
56
56
  end
57
- return where('1 = 0') if matches.empty?
57
+ return select('*, 0 AS RANK').where('1 = 0') if matches.empty?
58
58
  #rel = scoped
59
59
  #rel.ranks = matches if OPTIONS[:order_by_rank]
60
60
  #rel.where("#{table}.id IN (#{matches.keys.join(',')})")
@@ -1,3 +1,3 @@
1
1
  module Ximate
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ximate
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Enrico Pilotto
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-09 00:00:00 +02:00
13
+ date: 2011-05-11 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16