<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -53,8 +53,8 @@ class User &lt; ActiveRecord::Base
               end
               def actionize(user_id, scope_conditions = {})
                 @state = scope_conditions[:state]
-                query_state = ''
-                query_state = 'AND project.state = &quot;' + @state +'&quot; 'if @state
+                query_state = &quot;&quot;
+                query_state = &quot;AND project.state = '&quot; + @state +&quot;' &quot;if @state
                 projects = Project.find_by_sql([
                     &quot;SELECT project.id, count(todo.id) as p_count &quot; +
                       &quot;FROM projects as project &quot; +</diff>
      <filename>app/models/user.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>841eb1cb764cd05e2e56b6b6b903c9720d5fcbb7</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/e31b05a6975e5ad8d78d1d478e238df7d837326a</url>
  <id>e31b05a6975e5ad8d78d1d478e238df7d837326a</id>
  <committed-date>2008-10-28T14:39:50-07:00</committed-date>
  <authored-date>2008-10-28T14:39:50-07:00</authored-date>
  <message>update query for Postgresql

exchanging double quote with single quote in sql. Thanks Walter</message>
  <tree>4de1d62298ecf56cb8cde3a500e229a9e3a7f91b</tree>
  <committer>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
