diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-06-04 08:39:53 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-06-04 08:39:53 +0100 |
commit | 853701441060c56a0072d3523dd47fb2658cac18 (patch) | |
tree | 11c2b5304f8e10689caf6d27d14197cab1491c2a /lib/controller_patches.rb | |
parent | 852f088c104ae74210057578f2621afaa308d098 (diff) | |
parent | 945fb4b52727115575bbb3941b1151cd21a6a60e (diff) |
Merge branch 'rails-3'use-with-alaveteli-0.12
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r-- | lib/controller_patches.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb index 11b5722..9959f86 100644 --- a/lib/controller_patches.rb +++ b/lib/controller_patches.rb @@ -4,12 +4,15 @@ # 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 @say_something = "Greetings friend" end end + HelpController.class_eval do + def help_out + end + end end |