aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public_body_categories.rb
blob: 3528e85b140c6f1cdc18d59e285d3721263a60b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Allow the PublicBodyCategory model to be addressed using the same syntax
# as the old PublicBodyCategories class without needing to rename everything,
# make sure we're not going to break any themes
class PublicBodyCategories

    def self.method_missing(method, *args, &block)
        warn 'Use of PublicBodyCategories is deprecated and will be removed in release 0.21. Please use PublicBodyCategory instead.'
        PublicBodyCategory.send(method, *args, &block)
    end

end