diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8f9f3cd3d..ce78011a0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -5,13 +5,18 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application_helper.rb,v 1.14 2008-01-14 12:27:56 francis Exp $ +# $Id: application_helper.rb,v 1.15 2008-01-21 19:12:46 francis Exp $ module ApplicationHelper # URL generating functions are needed by all controllers (for redirects) # views (for links), so include them into all of both. include LinkToHelper + # Contact email address + def contact_email + MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost') + end + # Copied from error_messages_for in active_record_helper.rb def foi_error_messages_for(*params) options = params.last.is_a?(Hash) ? params.pop.symbolize_keys : {} |