I was wondering if any one knows how to serialize CanCan permissions to emberjs. I saw this StackOverflow Q &A by Jo_Liss where she explained how to Serialize permissions (e.g. CanCan) with active_model_serializers, but stopped at that level. Also this article linked to here, talks on how to check permission on the emberjs side, but nothing how on how to serialize the permission from the backend into emberjs.
I hope to have 3 kinds of user roles that is 'admin', 'author', 'user' and will want to use CanCan permissions on emberjs to control what they can access once they are in the logged-in route.