Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
use symbol instead of string in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Dec 4, 2010
1 parent 95cee8e commit c47292e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pacecar/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.extended(base)
def define_search_scopes
safe_column_names.each do |name|
scope "#{name}_equals".to_sym, lambda { |query|
{ :conditions => { table_name => { name => query} } }
{ :conditions => { table_name => { name.to_sym => query} } }
}
end
text_and_string_column_names.each do |name|
Expand Down

0 comments on commit c47292e

Please sign in to comment.