diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-27 13:43:51 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-27 13:43:51 +0100 |
commit | d8bd992a3723a5f3d484a2343f402337fbdfdc5e (patch) | |
tree | c04a4a176c5bc21c2f2311a6913f7d75750fffcf /app/controllers/general_controller.rb | |
parent | 25248d5255b9adced28160fba3b11f61d4eff189 (diff) |
Show the admin navigation bar when browsing the main site. Fixes #512
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 6e89a2832..839064fcd 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -21,7 +21,7 @@ class GeneralController < ApplicationController # New, improved front page! def frontpage medium_cache - behavior_cache do + behavior_cache :tag => [session[:user_id], request.url] do # get some example searches and public bodies to display # either from config, or based on a (slow!) query if not set body_short_names = MySociety::Config.get('FRONTPAGE_PUBLICBODY_EXAMPLES', '').split(/\s*;\s*/).map{|s| "'%s'" % s.gsub(/'/, "''") }.join(", ") |