Pundit has a helper method policy_scope
that can be used in controllers and views that basicaly a class finder. It is equivalent to:
@posts = policy_scope(Post)
@posts = PostPolicy::Scope.new(current_user, Post).resolve
Using the helper is a nice approach because you dont have to remember what Scope class you need. This is all fine and well on a world where the app is single teanant or the auth logic to reslove scopes needs no other context but the user and the resource that is being requested.
In our world almost all requests are nested under a company context and require a current user to determine membership role to present certain data.