diff options
author | James Lopez <james@jameslopez.es> | 2016-11-16 15:55:20 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:59 +0100 |
commit | cbd7d000395ff60fe3726e67ec351bd4d44582ec (patch) | |
tree | f497cc29ef7cb87a9f6bd4334ea536f6b6aa81fd /app/serializers/analytics_commit_entity.rb | |
parent | 4844476e77f625829d99b7db2680186939ef660a (diff) | |
download | gitlab-ce-cbd7d000395ff60fe3726e67ec351bd4d44582ec.tar.gz |
added custom date helper and spec and fixed some unrelated spec failures
Diffstat (limited to 'app/serializers/analytics_commit_entity.rb')
-rw-r--r-- | app/serializers/analytics_commit_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/analytics_commit_entity.rb b/app/serializers/analytics_commit_entity.rb index a932d612e0f..2b363abbbd2 100644 --- a/app/serializers/analytics_commit_entity.rb +++ b/app/serializers/analytics_commit_entity.rb @@ -5,7 +5,7 @@ class AnalyticsCommitEntity < CommitEntity expose :short_id, as: :short_sha expose :total_time do |commit| - distance_of_time_in_words(request.total_time.to_f) + distance_of_time_as_hash(request.total_time.to_f) end unexpose :author_name |