title: How to set up authorization policies for two controllers using Pundit?
body: <p>I'm learning Pundit using the <a href="http://railsapps.github.io/rails-devise-pundit/" rel="nofollow">RailsApps Pundit Tutorial</a> and this statement from the tutorial totally confused me:</p>
  
  <blockquote>
    <p>Given that the policy object is named UserPolicy, and we will use it
    for authorization from the Users controller, you might wrongly assume
    that the name of the policy object will always match the name of the
    controller. That is not the case.</p>
  </blockquote>
  
  <ol>
  <li><p>How can I create a policy (o set of policies) that allow users with the "role_a" to use the users_controller.index action and users with the "role_b" to use the orders_controller.index action?</p>
  
  <p>1.1  Does this require two different policies (UserPolicy and OrderPolicy) or should I name the index action for every controller differently to differentiate it on the UserPolicy?</p></li>
  </ol>