diff options
author | Mark Longair <mhl@pobox.com> | 2013-04-09 17:15:21 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-04-09 17:15:21 +0100 |
commit | 114706080a6c593cea7413a0b8b9d4be62b7b212 (patch) | |
tree | 34885b205702a7b2561be009dc5b29db22aaf162 /lib | |
parent | 33077ea01dc1317c4fce118889e9e8fdcaacb4b1 (diff) |
Explicitly add a survey method to UserController
Previously the survey.rhtml method was rendered by default
if no action matching 'survey' was found in the controller,
but this doesn't seem to be the case with some configurations.
This is rather unsatisfactory, in that we haven't found
documentation of any change that might cause this different
behaviour, but the pragmatic solution is to just to add
the empty survey method and move on.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/controller_patches.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb index b512fa7..9959f86 100644 --- a/lib/controller_patches.rb +++ b/lib/controller_patches.rb @@ -11,4 +11,8 @@ Rails.configuration.to_prepare do @say_something = "Greetings friend" end end + HelpController.class_eval do + def help_out + end + end end |