has_searcher 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/models/search.rb +2 -2
- data/lib/has_searcher/version.rb +1 -1
- metadata +6 -6
data/lib/app/models/search.rb
CHANGED
@@ -60,13 +60,13 @@ class Search < ActiveRecord::Base
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
63
|
-
additional_search
|
63
|
+
additional_search(search)
|
64
64
|
search.order_by *order_by.split(' ') if respond_to?(:order_by) && order_by.present?
|
65
65
|
search.paginate pagination if pagination.try(:any?)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
-
def additional_search
|
69
|
+
def additional_search(search)
|
70
70
|
end
|
71
71
|
|
72
72
|
def save(validate = true)
|
data/lib/has_searcher/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &19854360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19854360
|
25
25
|
description: ! "This gem adds ability to construct search objects for indexed models.\n
|
26
26
|
\ It works with sunspot, inherited_resources and formtastic"
|
27
27
|
email:
|
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
segments:
|
58
58
|
- 0
|
59
|
-
hash:
|
59
|
+
hash: -2105223472168161994
|
60
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: -2105223472168161994
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project: has_searcher
|
71
71
|
rubygems_version: 1.8.15
|