diff options
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index e4448e786e9..ab9a2e7b9d7 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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) |