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.
@@ -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.1"
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]}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Enrique Garcia Cota