should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end