clean up whitespace from project
This commit is contained in:
parent
415eddaf39
commit
368deb5992
50 changed files with 356 additions and 413 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -9,7 +9,7 @@ class Repository
|
|||
@project = project
|
||||
end
|
||||
|
||||
def path
|
||||
def path
|
||||
@path ||= project.path
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue