You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @vasilakisfil – you are right. I've had that under my radar for a while but somehow forgot about it. As jsonapi-serializable does not depend on ActiveSupport, there would be no #as_json, but the returned hash would be what one would expect from #as_json.
So, basically it's just a matter of removing .to_jsonhere and here. Feel free to open a PR if you have the file open in your text editor already, otherwise I'll do it myself over the weekend.
At the moment it seems render returns only a String since it uses to_json. There should be a as_json equivalent publicly accessible.
https://github.com/jsonapi-rb/jsonapi-serializable/blob/master/lib/jsonapi/serializable/renderer.rb#L22
The text was updated successfully, but these errors were encountered: