public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
update query for Postgresql

exchanging double quote with single quote in sql. Thanks Walter
lrbalt (author)
Tue Oct 28 14:39:50 -0700 2008
commit  e31b05a6975e5ad8d78d1d478e238df7d837326a
tree    4de1d62298ecf56cb8cde3a500e229a9e3a7f91b
parent  841eb1cb764cd05e2e56b6b6b903c9720d5fcbb7
...
53
54
55
56
57
 
 
58
59
60
...
53
54
55
 
 
56
57
58
59
60
0
@@ -53,8 +53,8 @@ class User < ActiveRecord::Base
0
               end
0
               def actionize(user_id, scope_conditions = {})
0
                 @state = scope_conditions[:state]
0
-                query_state = ''
0
-                query_state = 'AND project.state = "' + @state +'" 'if @state
0
+                query_state = ""
0
+                query_state = "AND project.state = '" + @state +"' "if @state
0
                 projects = Project.find_by_sql([
0
                     "SELECT project.id, count(todo.id) as p_count " +
0
                       "FROM projects as project " +

Comments