Use project with namespace in email subject

This commit is contained in:
Dmitriy Zaporozhets 2012-12-31 18:22:44 +02:00
parent 30d6370719
commit e5ff5c2869
3 changed files with 7 additions and 7 deletions

View file

@ -17,14 +17,14 @@ module Gitlab
@commits = collect_commits
@days = index_commits
end
def to_json(*args)
{
days: @days.compact.map { |d| [d.day, d.strftime("%b")] },
commits: @commits.map(&:to_graph_hash)
}.to_json(*args)
end
protected
# Get commits from repository