aboutsummaryrefslogtreecommitdiffstats
path: root/lib/controller_patches.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2016-04-04 14:59:27 +0100
committerLouise Crow <louise.crow@gmail.com>2016-04-06 15:42:42 +0100
commit4bd2c48f7f1f75d71b3eaed73e3893a2b42b0fee (patch)
tree88c6e500c615312a3dc2fc988d071a53064a71ec /lib/controller_patches.rb
parentc596594a6907ea478a3f62a6adfa8688d60412a2 (diff)
Make code customization commented out examples.
Rather than having them be live code.
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r--lib/controller_patches.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb
index 9959f86..6923062 100644
--- a/lib/controller_patches.rb
+++ b/lib/controller_patches.rb
@@ -6,13 +6,14 @@
#
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
+ # 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