title: Set a before action to all member routes?
body: <p>Playing around with Rails 4, I noticed that it defines a <code>before_action</code> filter <code>set_[model]</code>, that is called for the actions <code>show</code>, <code>edit</code>, <code>update</code> and <code>destroy</code>.</p>
  
  <p>It is in fact very useful, but I don't see much sense in not having it to all member actions. After all, if you are using a member action, you want to act on that member, thus you need to recover it from database at some point.</p>
  
  <p>Note that by member actions, I also means the ones configured on <code>routes.rb</code> in the <code>members</code> block.</p>
  
  <p>Is there a straight-forward way to do this, without list all member actions on the <code>before_action</code> filter?</p>
  
  <p><strong>Edit:</strong> To clarify, the whole point is use some rails magic to get all member routes and generate the array that would be pass in the <code>:only</code>. So I can do something like</p>
  
  <pre><code>before_action set_model only: all_member_routes
  </code></pre>
  
  <p>where <code>all_member_routes</code> is a piece of code that returns all member routes for my model.</p>
  
  <p>Or even better, </p>
  
  <pre><code>before_action set_model, only_member_actions: true
  </code></pre>