No access to grape helpers
Closed this issue · 1 comments
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.
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.