diff options
author | francis <francis> | 2009-09-10 14:59:35 +0000 |
---|---|---|
committer | francis <francis> | 2009-09-10 14:59:35 +0000 |
commit | 06ecd4c50128144109c164c8fd946dc595ce6a20 (patch) | |
tree | 18f2018251ba586ccf4592bad70a86f130cc9cae /app/controllers/public_body_controller.rb | |
parent | fc13621a1109ffa29ceef393d3e4a719138a66fb (diff) |
Constants must be caps
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 6 |
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 |