Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bess opened this issue Mar 15, 2017 · 1 comment
Closed

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

bess opened this issue Mar 15, 2017 · 1 comment
Assignees
Labels

Comments

@bess
Copy link
Collaborator

bess commented Mar 15, 2017

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

@bess bess self-assigned this Mar 15, 2017
@bess bess added the bug label Mar 15, 2017
@jcoyne
Copy link
Collaborator

jcoyne commented Mar 15, 2017

Looks like a resonable fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants