diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-12 13:09:27 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-13 08:21:28 +0100 |
commit | 778979f8b9c3aa99880c8c844e6a5be6d5968f4a (patch) | |
tree | e67972bfcb0360e31f19bb837ae8297f6c62bae4 /app/controllers/application_controller.rb | |
parent | e9e087d39ef3ce26a0d457b59ef63d14ff65bf4d (diff) |
Factor popup banner out into own partial, for easier setting/unsetting (including from themes). Fixes #524
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 41adf1848..11f21025c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -27,6 +27,7 @@ class ApplicationController < ActionController::Base before_filter :check_in_post_redirect before_filter :session_remember_me before_filter :set_vary_header + before_filter :set_popup_banner # scrub sensitive parameters from the logs filter_parameter_logging :password @@ -553,6 +554,9 @@ class ApplicationController < ActionController::Base return country end + def set_popup_banner + @popup_banner = render_to_string(:partial => "general/popup_banner").strip + end # URL generating functions are needed by all controllers (for redirects), # views (for links) and mailers (for use in emails), so include them into # all of all. |