Topic: Non-invokeable subclasses of ApplicationController...
I have multiple controllers that need to share some code and filters, however this code isn't universal to the application. So the solution is to add an intermediate subclass between ApplicationController and these controllers. However, like ApplicationControlller, these intermediate subclass should never be dispatched to by the routing.
Is there a normal Railish way of doing this? The first thing that comes to mind is to name the file and class something other than *Controller[.rb], ie something like
class AdminBase < ApplicationController
class CompetitionController < AdminBase
class FeeController < AdminBase
Thus the AdminBase class can hold the functionality, but rails won't find it as its outside the naming convention. This seems a little hackish though, but is it the normal way to do it?