acts_as_tokenizable 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
data/acts_as_tokenizable.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_tokenizable}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Enrique Garcia Cota", "Francisco de Juan"]
|
@@ -32,7 +32,7 @@ module ActsAsTokenizable
|
|
32
32
|
search_strings = []
|
33
33
|
search_values = []
|
34
34
|
prepare_search_token(search_token).words.each do |w|
|
35
|
-
search_strings.push("#{token_field_name} LIKE ?")
|
35
|
+
search_strings.push("#{table_name}.#{token_field_name} LIKE ?")
|
36
36
|
search_values.push("%#{w}%")
|
37
37
|
end
|
38
38
|
{:conditions => [search_strings.join(' AND '), *search_values]}
|