aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-10-09 14:18:25 +0100
committerLouise Crow <louise.crow@gmail.com>2014-10-09 14:18:25 +0100
commit3a33c84d03fe50ddc477b3a36273b05e9ff5cf79 (patch)
tree8a7dab1c860c1a76f6d5d559a103d738f2a8ba95 /app/models
parent74c6bd917e12e5d05611566df42b8adb1b4411b8 (diff)
Remove old PublicBodyCategories calls.
Add deprecation notice to draw attention to any place where PublicBodyCategories is called from themes.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/public_body.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 477503a61..f61a3f449 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -335,8 +335,8 @@ class PublicBody < ActiveRecord::Base
types = []
first = true
for tag in self.tags
- if PublicBodyCategories::get().by_tag().include?(tag.name)
- desc = PublicBodyCategories::get().singular_by_tag()[tag.name]
+ if PublicBodyCategory.get().by_tag().include?(tag.name)
+ desc = PublicBodyCategory.get().singular_by_tag()[tag.name]
if first
# terrible that Ruby/Rails doesn't have an equivalent of ucfirst
# (capitalize shockingly converts later characters to lowercase)