ghazel-pacecar 1.2.0.1 → 1.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pacecar/search.rb +1 -1
- metadata +1 -1
data/lib/pacecar/search.rb
CHANGED
@@ -15,7 +15,7 @@ module Pacecar
|
|
15
15
|
def define_search_scopes
|
16
16
|
safe_column_names.each do |name|
|
17
17
|
named_scope "#{name}_equals".to_sym, lambda { |query|
|
18
|
-
{ :conditions => { name
|
18
|
+
{ :conditions => { table_name => { name => query } } }
|
19
19
|
}
|
20
20
|
end
|
21
21
|
text_and_string_column_names.each do |name|
|