diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-06-02 06:43:19 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-06-02 16:54:43 +0300 |
commit | 22c80b3c6dd398fd6d2509e2a5e9ae0cbafb1bdf (patch) | |
tree | bc881d319edb00cfcc3fcbb16304994210f6edf3 /app/serializers | |
parent | 6e82de218aa63da6721a0340092dfaff6600b919 (diff) |
Add translations for elapsed time in words
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/entity_date_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/entity_date_helper.rb b/app/serializers/entity_date_helper.rb index 9607ad55a8b..71d9a65fb58 100644 --- a/app/serializers/entity_date_helper.rb +++ b/app/serializers/entity_date_helper.rb @@ -4,7 +4,7 @@ module EntityDateHelper def interval_in_words(diff) return 'Not started' unless diff - "#{distance_of_time_in_words(Time.now, diff)} ago" + distance_of_time_in_words(Time.now, diff, scope: 'datetime.time_ago_in_words') end # Converts seconds into a hash such as: |