aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-22 08:17:16 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-22 08:17:16 +0100
commit17e2024962b84f759b1f2bfb13564d6626f0d6f0 (patch)
tree70c20452176bfce76ef5a34b698e6ac615f66c23 /app/controllers/application_controller.rb
parente3887f042ba1309985e58ce553de0de05227dc56 (diff)
parent19d6e36039318cdb1f9aa9e0c4731b500b3b0aeb (diff)
Merge branch 'release/0.6.3' into wdtk
Conflicts: app/controllers/admin_request_controller.rb app/views/request/show.rhtml spec/models/info_request_spec.rb
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index eb6c9c7f7..40fa018aa 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
@@ -556,6 +557,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.