diff options
author | utvk <utvk@users.noreply.github.com> | 2016-05-11 22:44:14 +0200 |
---|---|---|
committer | utvk <utvk@users.noreply.github.com> | 2016-05-11 22:44:14 +0200 |
commit | 9e8ef918110f966bdf88b421842c56786efb4a6c (patch) | |
tree | 37459de5d1c38d7a1fc17cd16615e4e0bbaab35d /lib/controller_patches.rb | |
parent | d72388b7a7cac8a84050ecb77caf98d4260a206b (diff) | |
parent | d3a5a2c54b2222e570c23ef57d4957891730aa92 (diff) |
Merge branch 'master' into norway2
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r-- | lib/controller_patches.rb | 21 |
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 |