#193: fixed undefined method count

This commit is contained in:
Vokhmin Alexey V 2013-06-20 14:33:22 +04:00
parent 5d53b40262
commit 816cbc82b1
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class ActivityFeedObserver < ActiveRecord::Observer
:change_type => change_type, :project_owner => record.project.owner.uname}
else
if record.message # online update
last_commits, commits = [[record.newrev, record.message]], []
last_commits, commits, all_commits = [[record.newrev, record.message]], [], []
else
commits = record.project.repo.commits_between(record.oldrev, record.newrev)
all_commits = commits.collect { |commit| [commit.sha, commit.message] }