ruby-grape / grape-active_model_serializers

User active_model_serializers with Grape
MIT License
139 stars 68 forks source link

No access to grape helpers #10

Closed robertjpayne closed 10 years ago

robertjpayne commented 11 years ago

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 commented 11 years ago

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.