Skip to content
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

No access to grape helpers #10

Closed
robertjpayne opened this issue Sep 14, 2013 · 1 comment
Closed

No access to grape helpers #10

robertjpayne opened this issue Sep 14, 2013 · 1 comment

Comments

@robertjpayne
Copy link

One of the key things about ActiveModelSerializers is it's access to your ActionController helpers.

It would be great if this plug could also give access to grapes helpers so you can use them to determine how to serialise content.

For instance sometimes I need to check if object == current_user to determine whether sensitive details should be returned.

@jrhe
Copy link
Member

jrhe commented Sep 14, 2013

Pull request?

Kind regards,
Jonathan Evans

Sent from my phone.

On 14 Sep 2013, at 13:46, Robert Payne notifications@github.com wrote:

One of the key things about ActiveModelSerializers is it's access to your ActionController helpers.

It would be great if this plug could also give access to grapes helpers so you can use them to determine how to serialise content.

For instance sometimes I need to check if object == current_user to determine whether sensitive details should be returned.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants