Refactor: Removing the duplicated code.
This commit is contained in:
parent
79cd1ca304
commit
b7e5f4556b
3 changed files with 38 additions and 46 deletions
|
@ -5,7 +5,7 @@
|
|||
days: @graph.days.compact.map { |d| [d.day, d.strftime("%b")] },
|
||||
commits: @graph.commits.map do |c|
|
||||
{
|
||||
parents: parents_zip_spaces(c.parents, c.parent_spaces),
|
||||
parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
|
||||
author: {
|
||||
name: c.author.name,
|
||||
email: c.author.email,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue