diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-26 14:26:20 +1100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-02-27 06:16:31 -0800 |
commit | 7db25f53b981d7355b58b2b3cc9d85dee188bc06 (patch) | |
tree | 87de8574cc8044d998eb93a2b99ef2bb5b5341ba /app/controllers/admin_request_controller.rb | |
parent | d310d96f50d8b339d0d3278d48c9412867f2a310 (diff) |
Use string interpolation to make the flash message more readable in the code
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index f66c6c8d0..c3bb597be 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -304,7 +304,7 @@ class AdminRequestController < AdminController post_redirect.save! url = main_url(confirm_url(:email_token => post_redirect.email_token, :only_path => true)) - flash[:notice] = ('Send "' + name + '" <<a href="mailto:' + email + '">' + email + '</a>> this URL: <a href="' + url + '">' + url + "</a> - it will log them in and let them upload a response to this request.").html_safe + flash[:notice] = ("Send \"#{name}\" <<a href=\"mailto:#{email}\">#{email}</a>> this URL: <a href=\"#{url}\">#{url}</a> - it will log them in and let them upload a response to this request.").html_safe redirect_to request_admin_url(info_request) end |