Skip to content

From non-controller? #4

@tylercollier

Description

@tylercollier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions