aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/public_body_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r--app/controllers/public_body_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb
index 21ef45677..0ec9f1a32 100644
--- a/app/controllers/public_body_controller.rb
+++ b/app/controllers/public_body_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: public_body_controller.rb,v 1.6 2009-09-07 17:31:36 francis Exp $
+# $Id: public_body_controller.rb,v 1.7 2009-09-10 14:59:35 francis Exp $
class PublicBodyController < ApplicationController
# XXX tidy this up with better error messages, and a more standard infrastructure for the redirect to canonical URL
@@ -68,7 +68,7 @@ class PublicBodyController < ApplicationController
@tag = "all"
conditions = []
elsif @tag == 'other'
- category_list = PublicBody.categories.map{|c| "'"+c+"'"}.join(",")
+ category_list = PublicBody::CATEGORIES.map{|c| "'"+c+"'"}.join(",")
conditions = ['(select count(*) from public_body_tags where public_body_tags.public_body_id = public_bodies.id
and public_body_tags.name in (' + category_list + ')) = 0']
elsif @tag.size == 1
@@ -85,7 +85,7 @@ class PublicBodyController < ApplicationController
if @tag.size == 1
@description = "beginning with '" + @tag + "'"
else
- @description = PublicBody.categories_by_tag[@tag]
+ @description = PublicBody::CATEGORIES_BY_TAG[@tag]
if @description.nil?
@description = @tag
end