diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-01-23 15:17:06 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-02-20 11:59:04 +0000 |
commit | 572a3e4b5ac5f8946e3346f91a8ff7ca568a2527 (patch) | |
tree | d34a39efc9be3110f67df1998fd8499853639927 /app/models | |
parent | b18f3d7b2a061973c74e75660f67aed62c1250d4 (diff) |
Move logic to model
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/public_body.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 36d66b665..5e5b35c5b 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -262,6 +262,11 @@ class PublicBody < ActiveRecord::Base end end + def special_not_requestable_reason? + self.defunct? || self.not_apply? + end + + class Version def last_edit_comment_for_html_display |