I thought I\'d come up with a slick way to extend ApplicationController in a Rails 3.x gem.
In my gem\'s lib/my_namespace/my_controller.rb, I had:
lib/my_namespace/my_controller.rb
Here is a Gist that shows how to access the class of the subclass and store it in an instance variable and access it in the before and after filters. It uses the include method.