aboutsummaryrefslogtreecommitdiffstats
path: root/lib/controller_patches.rb
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-04-09 15:57:13 +0100
committerMark Longair <mhl@pobox.com>2013-04-09 15:57:13 +0100
commita5537818e559c5a30c1bf07dd49a1f4cb06fa1ea (patch)
tree055c8099fced225bbe5e991af288b750187f80aa /lib/controller_patches.rb
parente90c170f84ab4b91b25c673045bc0bbec0c5788a (diff)
Replace Dispatcher.to_prepare with Rails.configuration.to_prepare
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r--lib/controller_patches.rb3
1 files changed, 1 insertions, 2 deletions
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