diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-06-03 17:37:32 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-06-15 16:11:12 +0100 |
commit | 05fc395d4470767de340fc87ad2b9d47c02b1c86 (patch) | |
tree | 9aabf3d4c515db445850b01264f365371300b7e5 | |
parent | dbb0562bb1d1334188629c93252f5d45e6a8d6f8 (diff) |
Add markers for deprecated and privatised methods
Just to aid current cleanup
-rw-r--r-- | app/models/public_body.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index d11ed683a..5077b2c43 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -694,6 +694,9 @@ class PublicBody < ActiveRecord::Base return bodies end + # Methods to privatise + # -------------------------------------------------------------------------- + # TODO: This could be removed by updating the default value (to '') of the # `publication_scheme` column in the `public_body_translations` table. # @@ -709,6 +712,9 @@ class PublicBody < ActiveRecord::Base self.publication_scheme = "" if publication_scheme.nil? end + # Methods to remove + # -------------------------------------------------------------------------- + # Set the first letter on a public body or translation def self.set_first_letter(instance) warn %q([DEPRECATION] PublicBody.set_first_letter will be removed |