fix quotes for postgresql. tested on sqlite but untested on mysql

This commit is contained in:
Erik Ordway 2009-11-25 10:08:38 +08:00 committed by Reinier Balt
parent 7883145bdb
commit d24d44da13

View file

@ -257,7 +257,7 @@ module TodosHelper
end
def default_tags_for_autocomplete
projects = current_user.projects.find(:all, :conditions => ['default_tags != ""'])
projects = current_user.projects.find(:all, :conditions => ["default_tags != ''"])
Hash[*projects.map{ |p| [p.name, p.default_tags] }.flatten].to_json
end