So, you could have an abstract base class, but obviously doesn't help
if you have multiple sets of callbacks, filters etc and models need to
be able to mix and match at will
A more flexible way, using modules is
module MyCallbackPackage
extend ActiveSupport::Concern
included do
before_filter :a
before_filter :b
end
def a
end
def b
end
end
then you can do
class MyController < ActionController::Base
include MyCallbackPackage
end
The ActiveSupport::Concern gives you the included method and makes
that side of things more convenient. You don't need to use it - you
can achieve it all through self.included
Fred