White space police

This commit is contained in:
James Herdman 2009-08-29 14:33:09 -04:00
parent e3752a04dc
commit ed8e9cfbd8

View file

@ -82,8 +82,7 @@ class Web < ActiveRecord::Base
'FROM revisions r ' +
'JOIN pages p ON r.page_id = p.id ' +
"WHERE p.web_id = #{self.id} " +
'ORDER by p.name'
).inject({}) { |result, row|
'ORDER by p.name').inject({}) { |result, row|
author, page_name = row['author'], row['page_name']
result[author] = [] unless result.has_key?(author)
result[author] << page_name