has_searcher 0.0.95.4 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
@@ -58,7 +58,17 @@ class Searcher::Configuration
58
58
  scope &block
59
59
  else
60
60
  scope do |sunspot|
61
- sunspot.with(field, search_object.send(field)) if search_object.send(field).presence
61
+ if (value = search_object.send(field)).present?
62
+ if value.is_a? Array
63
+ sunspot.all_of do |all_of|
64
+ value.each do |v|
65
+ all_of.with(field, v)
66
+ end
67
+ end
68
+ else
69
+ sunspot.with(field, value)
70
+ end
71
+ end
62
72
  end
63
73
  end
64
74
  end
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.95.4"
2
+ VERSION = "0.0.96"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_searcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.95.4
4
+ version: 0.0.96
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-11 00:00:00.000000000 Z
12
+ date: 2012-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: 979056079572079856
149
+ hash: -3922991756720209387
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 979056079572079856
158
+ hash: -3922991756720209387
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.24