White space police

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

View file

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