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_build_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_build_entity.rb')
-rw-r--r-- | app/serializers/analytics_build_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/analytics_build_entity.rb b/app/serializers/analytics_build_entity.rb index eb1eef3424a..5fdf2bbf7c3 100644 --- a/app/serializers/analytics_build_entity.rb +++ b/app/serializers/analytics_build_entity.rb @@ -13,7 +13,7 @@ class AnalyticsBuildEntity < Grape::Entity end expose :duration, as: :total_time do |build| - distance_of_time_in_words(build[:duration].to_f) + distance_of_time_as_hash(build[:duration].to_f) end expose :branch do |