title: skip_before_action for a few controllers in Rails?
body: <p>Hi I'm building an api section for an app. My all api related controllers resides inside <code>app/controllers/api</code> directory.</p>
  
  <p>My concern is that in <code>application_controller</code> there is a filter <code>before_action 
  :authenticate_user!</code>, so I have to be in login mode to access the api.</p>
  
  <p><strong>My current solution:</strong> I'm adding  <code>skip_before_action :authenticate_user!</code> in all the controllers which are in 
  <code>app/controllers/api</code> directory..</p>
  
  <p><strong>Problem:</strong> I have to write in all the controllers and I have around 80 controllers</p>
  
  <p><strong>My expectation:</strong> Is there a way where I can write in <code>application_controller</code> itself something like this
  <strong><em>before_action :authenticate_user!, except: [<code>all the controllers which are in api directory</code>]</em></strong></p>