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
Add automatic support for Grape entities #17
Comments
Hi @andyw8, yes, converting to a
I couldn't find much on the topic, but the fact that An alternative is to only cache the |
We could also build support for StringIO when defined in Garner proper within the Grape extension. So this issue can be renamed to "support Grape Entity presenters". I think it would be as simple as checking that the type is StringIO and calling |
Going to close and mark this one |
So what is the work around this? |
@andoriyu It depends on your scenario. If you have a |
I figured it out. Maybe makes sense to add this to documentation:
|
I'd welcome any README change that makes sense :) |
I'm trying to cache the output generated from a custom entity:
But this fails with:
I guess the stream somehow needs to be converted to a String first?
The text was updated successfully, but these errors were encountered: