From a5537818e559c5a30c1bf07dd49a1f4cb06fa1ea Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Tue, 9 Apr 2013 15:57:13 +0100 Subject: Replace Dispatcher.to_prepare with Rails.configuration.to_prepare --- lib/controller_patches.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/controller_patches.rb') diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb index 11b5722..b512fa7 100644 --- a/lib/controller_patches.rb +++ b/lib/controller_patches.rb @@ -4,8 +4,7 @@ # classes are reloaded, but initialization is not run each time. # See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode # -require 'dispatcher' -Dispatcher.to_prepare do +Rails.configuration.to_prepare do # Example adding an instance variable to the frontpage controller GeneralController.class_eval do def mycontroller -- cgit v1.2.3