class ApplicationController < ActionController::Base
def func
end
end
class BaseController < ApplicationController
def func(a)
end
end
class MyController < BaseController
before_filter :func # I want this to call ApplicationController::func
end
In this case, the BaseController::func is called. How do I call ApplicationController’s one?
I don’t think there’s a good way to hack
before_filteritself to make it work. But I think this alternative might just do what you are looking for.Try this.