aboutsummaryrefslogtreecommitdiffstats
path: root/lib/controller_patches.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@garethrees.co.uk>2016-12-14 11:28:50 +0000
committerGareth Rees <gareth@garethrees.co.uk>2016-12-14 11:28:50 +0000
commit05dd15e00d289dbe558dfda6dfbf8b24d74e678a (patch)
treebae42727829448da6e796ee90a36a9bc21874386 /lib/controller_patches.rb
parentb26b78c093b751b27ed77138c3c34f365dc9f649 (diff)
parent041b416fd4bbd7286252f24135f5a2bc19e36395 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r--lib/controller_patches.rb21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb
index 9959f86..5c48e70 100644
--- a/lib/controller_patches.rb
+++ b/lib/controller_patches.rb
@@ -5,14 +5,15 @@
# See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode
#
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
+ # Example adding an instance variable to the frontpage controller
+ # GeneralController.class_eval do
+ # def mycontroller
+ # @say_something = "Greetings friend"
+ # end
+ # end
+ # Example adding a new action to an existing controller
+ # HelpController.class_eval do
+ # def help_out
+ # end
+ # end
end