Authorization for rails Serializer
https://medium.com/@rudyyazdi/authorization-for-rails-serializer-8b7c77133f52
Explains the way you can customize your JSON responses based on the person who is viewing the object.
e.g. when someone is allowed to see a record but not all its attributes.
Post a comment