title: Is before_action outside the scope of private methods?
body: <p>In the controller:</p>
  
  <p><code>before_action { |controller| controller.param_policy(action_name) }</code>.</p>
  
  <p>Also in the same controller is the <code>param_policy</code> method. Under <code>private</code>. Why is rails complaining with: </p>
  
  <pre><code>private method `param_policy' called for #&lt;SomeController:0x007fc80196bc40&gt;
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>class SomeController &lt; ApplicationController
    before_action { |controller| controller.param_policy(action_name) }
  
    private
  
    def param_policy(action_name)
      # ...
    end
  end
  </code></pre>
  
  <p>Is <code>before_action</code> outside the scope of <code>private</code> methods?</p>