title: Rails: DRYing up before_action
body: <p>I have a few controllers:</p>
  
  <pre><code>class First &lt; ApplicationController
     before_action: do_this
     before_action: do_this_too
  end
  
  class Second &lt; ApplicationController
    before_action: do_this
    before_action: do_this_too
  end
  
  class Third &lt; ApplicationController
  
  end
  </code></pre>
  
  <p>Two of the controllers have the same <code>before_action</code>'s method. How do I dry up this code so that the <code>First</code> and <code>Second</code> class use the <code>before_action</code>'s in one location but not the <code>Third</code> class?</p>
  
  <p>I am thinking of some kind of class inheritance solution. Any ideas? In my real world example I have more classes with multiple identical <code>before_actions</code> on each?</p>