-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels