I have a before_filter
in my ApplicationController
; that is, for every controller in my project.
How can I skip_before_filter
Before my colleague showed me the way I posted in my other answer, I did this. I'm posting this in case you think it's simpler.
class ApplicationController < ActionController::Base
# ...
before_filter :do_something
def do_something
unless params[:controller] == 'devise/sessions'
# ...
end
end
end