fetch to dig
This commit is contained in:
parent
c4441c623e
commit
6dcd2d591f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue