sul-dlss / riiif

IIIF image server in ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined method `merge' for #<struct Riiif::ImageInformation

bess opened this issue · comments

With riiif 1.1.2, I encounter a bug when rendering info.json manifests. It can't run #merge on a Riiif::ImageInformation struct. The bug is fixed if I add a #to_h, like this:

render json: image.info.to_h.merge(server_info), content_type: 'application/ld+json'

PR forthcoming.

screen shot 2017-03-15 at 2 13 10 pm

Looks like a resonable fix.