diff options
Diffstat (limited to 'lib/controller_patches.rb')
-rw-r--r-- | lib/controller_patches.rb | 19 |
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 |