clean up whitespace from project

This commit is contained in:
Nihad Abbasov 2011-11-15 12:34:30 +04:00
parent 415eddaf39
commit 368deb5992
50 changed files with 356 additions and 413 deletions

View file

@ -11,8 +11,8 @@ class Issue < ActiveRecord::Base
validates_presence_of :author_id
delegate :name,
:email,
:to => :author,
:email,
:to => :author,
:prefix => true
validates :title,

View file

@ -8,8 +8,8 @@ class Note < ActiveRecord::Base
:class_name => "User"
delegate :name,
:email,
:to => :author,
:email,
:to => :author,
:prefix => true
attr_protected :author, :author_id

View file

@ -121,9 +121,9 @@ class Project < ActiveRecord::Base
private_flag
end
def last_activity
def last_activity
updates(1).first
rescue
rescue
nil
end
@ -132,7 +132,7 @@ class Project < ActiveRecord::Base
end
def updates(n = 3)
[
[
fresh_commits(n),
issues.last(n),
notes.fresh.limit(n)

View file

@ -9,7 +9,7 @@ class Repository
@project = project
end
def path
def path
@path ||= project.path
end