[25968] Use OpenStruct instead non-required hashie (#5794)

https://community.openproject.com/wp/25968

[ci skip]
pull/5795/head
Oliver Günther 7 years ago committed by GitHub
parent e5a5baa8fe
commit 9937307c7c
  1. 2
      lib/api/v3/attachments/attachments_by_work_package_api.rb

@ -37,7 +37,7 @@ module API
def parse_metadata(json)
return nil unless json
metadata = Hashie::Mash.new
metadata = OpenStruct.new
::API::V3::Attachments::AttachmentMetadataRepresenter.new(metadata).from_json(json)
unless metadata.file_name

Loading…
Cancel
Save