-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feature: support for cancancan #1742
Comments
@cgmckeever nice :) |
this is already present https://github.com/rails-api/active_model_serializers/blob/db87f8d85e7a46ef195a555cb7e2509f1affc622/docs/general/serializers.md#scope as serialization scope, no? |
I think it is already in the 0.10 branch. Which version are you using? |
nice, ive 0.10 :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior vs actual behavior
anyway to pass in current_user, or current_ability from cancancan gem to determine the serialisable attributes?
Steps to reproduce
(e.g., detailed walkthrough, runnable script, example application)
maybe:
options = { ability: current_ability }
serialization = ActiveModelSerializers::SerializableResource.new(resource, options)
The text was updated successfully, but these errors were encountered: