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
Great project! I just learned of JSend and am pleased to find this gem.
I'm using the Grape gem for my API, so I just return a value directly in my methods and Grape renders them for me. Thus, I don't want jsend-rails to try to render for me. To get around this, instead of calling render_jsend, I use JSend::Rails::Envelope.compute({ success: myresponse }). This works fine, but doesn't feel like it has first class support. Would you consider creating a build_jsend method? Name it what you like, but just a better way to expose JSend::Rails::Envelope.compute.
The text was updated successfully, but these errors were encountered:
Great project! I just learned of JSend and am pleased to find this gem.
I'm using the Grape gem for my API, so I just return a value directly in my methods and Grape renders them for me. Thus, I don't want
jsend-rails
to try to render for me. To get around this, instead of callingrender_jsend
, I useJSend::Rails::Envelope.compute({ success: myresponse })
. This works fine, but doesn't feel like it has first class support. Would you consider creating abuild_jsend
method? Name it what you like, but just a better way to exposeJSend::Rails::Envelope.compute
.The text was updated successfully, but these errors were encountered: