diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-21 15:15:20 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-23 11:11:49 +0300 |
commit | 6dcd2d591fa00be027b92e8c0e6b3b129921f4fa (patch) | |
tree | 2216aa773af1641875c9acb2bd2501ccd8f0d2e3 /app/serializers | |
parent | c4441c623e7c33839e682819db269a7ee4cb8faa (diff) |
fetch to dig
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/pipeline_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb index 384e881da06..412390737cb 100644 --- a/app/serializers/pipeline_serializer.rb +++ b/app/serializers/pipeline_serializer.rb @@ -25,6 +25,6 @@ class PipelineSerializer < BaseSerializer def represent_status(resource) data = represent(resource, { only: [{ details: [:status] }] }) - data.fetch(:details, {}).fetch(:status, {}) + data.dig(:details, :status) || {} end end |