title: before_filter in ApplicationController not called (Rails 4)
body: <p>I'd like to call a filter before every action of every controller of my rails application.</p>
  
  <p>To achieve this, I've simply used <code>before_filter</code> inside my ApplicationController.</p>
  
  <p>However, it doesn't work and my method is never called when I receive a valid request.</p>
  
  <p>Here is the content of my ApplicationController:</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    protect_from_forgery with: :exception
  
    before_filter :authenticate_with_token
  
    def authenticate_with_token
        begin
            auth = AuthenticatorService.new
            auth.authenticate params[:email], params[:token], request.method, request.fullpath
            @current_user = auth.user
            return true
        rescue Exception =&gt; e
            return false
        end
    end
  
  end
  </code></pre>
  
  <p>Even if before_filter is not supposed to be deprecated in rails 4, I've also tried to use <code>before_action</code>, but the result remains the same.</p>
  
  <p>Any solution?</p>