diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-10-09 14:18:25 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-10-09 14:18:25 +0100 |
commit | 3a33c84d03fe50ddc477b3a36273b05e9ff5cf79 (patch) | |
tree | 8a7dab1c860c1a76f6d5d559a103d738f2a8ba95 /app/models | |
parent | 74c6bd917e12e5d05611566df42b8adb1b4411b8 (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.rb | 4 |
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) |