summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-10 21:56:35 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-23 17:11:49 +0900
commit3b635002976e1dd45e58271efdb71f7349719d02 (patch)
tree8c497514f7123468fc6ea035ff6b5aff1130fca9 /app/serializers
parent2b33e9eeb68199f7085102a85c06821b991ecd4d (diff)
downloadgitlab-ce-3b635002976e1dd45e58271efdb71f7349719d02.tar.gz
3 lines to One line. Correct spec caption.
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/build_entity.rb4
-rw-r--r--app/serializers/pipeline_entity.rb5
2 files changed, 2 insertions, 7 deletions
diff --git a/app/serializers/build_entity.rb b/app/serializers/build_entity.rb
index 10151d94e68..35566c55950 100644
--- a/app/serializers/build_entity.rb
+++ b/app/serializers/build_entity.rb
@@ -20,9 +20,7 @@ class BuildEntity < Grape::Entity
expose :updated_at
expose :details do
- expose :detailed_status,
- as: :status,
- with: StatusEntity
+ expose :detailed_status, as: :status, with: StatusEntity
end
private
diff --git a/app/serializers/pipeline_entity.rb b/app/serializers/pipeline_entity.rb
index 1c1fa9e3dee..3f16dd66d54 100644
--- a/app/serializers/pipeline_entity.rb
+++ b/app/serializers/pipeline_entity.rb
@@ -12,10 +12,7 @@ class PipelineEntity < Grape::Entity
end
expose :details do
- expose :detailed_status,
- as: :status,
- with: StatusEntity
-
+ expose :detailed_status, as: :status, with: StatusEntity
expose :duration
expose :finished_at
expose :stages, using: StageEntity