I have before_filter :method in my application_controller and I want this method to run after the before_filter methods in inherit class.
how can I do it?
example
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :run_second
end
class SessionsController < ApplicationController
before_filter :run_first
end
I think the most Rails-friendly way of doing this would be to use
prepend_before_filterin your SessionsController: