From 16168e471fcbd907a79e288fa4c329787a096853 Mon Sep 17 00:00:00 2001 From: Clemens Kofler Date: Wed, 27 May 2009 09:34:51 +0200 Subject: [PATCH] Register Cells hook in init.rb instead of having a separate controller file. --- plugins/adva_cells/app/controllers/base_controller.rb | 6 ------ plugins/adva_cells/init.rb | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 plugins/adva_cells/app/controllers/base_controller.rb diff --git a/plugins/adva_cells/app/controllers/base_controller.rb b/plugins/adva_cells/app/controllers/base_controller.rb deleted file mode 100644 index 3dd54303f..000000000 --- a/plugins/adva_cells/app/controllers/base_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class BaseController < ApplicationController - around_filter OutputFilter::Cells.new -end - - - diff --git a/plugins/adva_cells/init.rb b/plugins/adva_cells/init.rb index a3f3d4b56..37d04dbea 100644 --- a/plugins/adva_cells/init.rb +++ b/plugins/adva_cells/init.rb @@ -1,4 +1,6 @@ config.to_prepare do + BaseController.around_filter(OutputFilter::Cells.new) + # FIXME this really should go somewhere else ... why did we put it here in the first place? class Cell::Base class_inheritable_accessor :states