Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-16 17:55:20 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:59 +0300
commitcbd7d000395ff60fe3726e67ec351bd4d44582ec (patch)
treef497cc29ef7cb87a9f6bd4334ea536f6b6aa81fd /app/serializers/analytics_commit_entity.rb
parent4844476e77f625829d99b7db2680186939ef660a (diff)
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.rb2
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