myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [1996] branches/event_logging/app/models/user.rb:


From: noreply
Subject: [myexperiment-hackers] [1996] branches/event_logging/app/models/user.rb: News generation.
Date: Thu, 20 Nov 2008 10:55:04 -0500 (EST)

Revision
1996
Author
alekses6
Date
2008-11-20 10:55:04 -0500 (Thu, 20 Nov 2008)

Log Message

News generation. Bug-fix in sql query.

Modified Paths

Diff

Modified: branches/event_logging/app/models/user.rb (1995 => 1996)


--- branches/event_logging/app/models/user.rb	2008-11-20 15:43:45 UTC (rev 1995)
+++ branches/event_logging/app/models/user.rb	2008-11-20 15:55:04 UTC (rev 1996)
@@ -280,7 +280,7 @@
   # (this also includes workflows, where the user is original uploader of the workflow)
   has_many :workflows_with_contributed_versions,
            :class_name => "Workflow",
-           :finder_sql => 'SELECT * FROM workflows w JOIN workflow_versions v ON w.id = v.workflow_id WHERE v.contributor_type = \'User\' AND v.contributor_id = #{id}'
+           :finder_sql => 'SELECT w.* FROM workflows w JOIN workflow_versions v ON w.id = v.workflow_id WHERE v.contributor_type = \'User\' AND v.contributor_id = #{id}'
   
   acts_as_creditor
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]