diff options
author | David Cabo <david@calibea.com> | 2011-07-26 02:39:57 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-07-26 02:39:57 +0200 |
commit | 058a65ae0d079729b10a2954c472c336dce43245 (patch) | |
tree | 91543599b6db6538ceb2cdb36aaa9057ffe066fc /app/controllers/public_body_controller.rb | |
parent | 1ac1e5df9e1b8e670fbab1d2c65de6ce28232602 (diff) | |
parent | 04927e448f99f67bbfde88dd466f03fb23373b28 (diff) |
Merge branch 'master' of github.com:sebbacon/alaveteli into asktheeu
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index c74959b17..05acf4868 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -11,6 +11,7 @@ require 'csv' class PublicBodyController < ApplicationController # XXX tidy this up with better error messages, and a more standard infrastructure for the redirect to canonical URL def show + long_cache if MySociety::Format.simplify_url_part(params[:url_name], 'body') != params[:url_name] redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 'body'), :status => :moved_permanently return @@ -80,6 +81,7 @@ class PublicBodyController < ApplicationController end def list + long_cache # XXX move some of these tag SQL queries into has_tag_string.rb @tag = params[:tag] @locale = self.locale_from_params() |