I’m working on a plugin that needs to add stuff to the user serializer. It’s working!
But I need to add it to the user serializer only for staff and the current user.
But . . . backing up, perhaps, I really need this information only on the user profile page, so perhaps I need to put it somewhere else?
add_to_serializer(:user, :manager_status) {
# TODO: include only for current user and staff
return object.manager_status
}
I’m currently displaying this on the user profile page. I’d like to know how to create a separate profile page with just this stuff on it. Links to something doing that would be great.