diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-11 12:53:49 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-13 11:48:42 +0000 |
commit | 550ed0aa483d0b31a6f844a728340e5a81a753ed (patch) | |
tree | 405579c695fcea83e9a0c3bdd4881b6d50b2dbc0 /lib/normalize_string.rb | |
parent | 80a09e95566e37224f2fac72d83639bbec70d77d (diff) |
Graceful failure of new_comment route
Fixes https://github.com/mysociety/alaveteli/issues/662
If /annotate/request/:url_title is accessed when comments are disabled
an exception is incorrectly thrown.
Conditionals should be used for control flow, so now the action
redirects to the info_request path and displays a notice.
Diffstat (limited to 'lib/normalize_string.rb')
0 files changed, 0 insertions, 0 deletions