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