I was trying to cleanup my app and I runned into quite a problem. My
controllers in submodule do not seem to inherit things from base
I have following setup:
class Admin::AdminController < ApplicationController
before_filter :authorize_action # method defined by LoginEngine
class Admin::HomepageController < Admin::AdminController
Now when I try to access HomepageController I get NoMethodError:
undefined method `authorize_action’ for
So it seems that HomepageController properly inherits filters but not
included module contents.
Funny thing is that when I include engines from within
ApplicationController everything is a-ok.
Can someone tell me what is wrong?