diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-03 21:05:38 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-03 21:08:43 -0500 |
commit | dbd1bdaeed596f14af89d662e73030bb02571cfd (patch) | |
tree | 16712553353aa5f4f43997863357da9fd0347ce9 /app/serializers | |
parent | b7f01f2b18940eb8dc0fa30e8ebbf1784c864304 (diff) | |
download | gitlab-ce-dbd1bdaeed596f14af89d662e73030bb02571cfd.tar.gz |
More updates for translations plus some refactoring.
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/analytics_stage_entity.rb | 1 | ||||
-rw-r--r-- | app/serializers/analytics_summary_entity.rb | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/app/serializers/analytics_stage_entity.rb b/app/serializers/analytics_stage_entity.rb index 69bf693de8d..564612202b5 100644 --- a/app/serializers/analytics_stage_entity.rb +++ b/app/serializers/analytics_stage_entity.rb @@ -2,6 +2,7 @@ class AnalyticsStageEntity < Grape::Entity include EntityDateHelper expose :title + expose :name expose :legend expose :description diff --git a/app/serializers/analytics_summary_entity.rb b/app/serializers/analytics_summary_entity.rb index 91803ec07f5..9c37afd53e1 100644 --- a/app/serializers/analytics_summary_entity.rb +++ b/app/serializers/analytics_summary_entity.rb @@ -1,7 +1,4 @@ class AnalyticsSummaryEntity < Grape::Entity expose :value, safe: true - - expose :title do |object| - object.title.pluralize(object.value) - end + expose :title end |