aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/public_body.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-07 13:34:41 +0100
committerGareth Rees <gareth@mysociety.org>2015-05-07 13:34:41 +0100
commit63f65e7b75c1d5eb85c6176b0c79ffeda0257a13 (patch)
tree3ad2d65b49d18b422041afa0da89b16b142a9350 /app/models/public_body.rb
parente2d2c80ef59ddf8b5925246bf82582b2f82aea7e (diff)
parentb624c4735c325bbc1c062d8e6c9aa89a5b7fcf19 (diff)
Merge branch 'initialize-info-request' into rails-3-develop
Diffstat (limited to 'app/models/public_body.rb')
-rw-r--r--app/models/public_body.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 5bce8ecc7..dac77d4c5 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -339,19 +339,20 @@ class PublicBody < ActiveRecord::Base
# Are all requests to this body under the Environmental Information Regulations?
def eir_only?
- return self.has_tag?('eir_only')
+ has_tag?('eir_only')
end
+
def law_only_short
- if self.eir_only?
- return "EIR"
- else
- return "FOI"
- end
+ eir_only? ? 'EIR' : 'FOI'
end
# Schools are allowed more time in holidays, so we change some wordings
def is_school?
- return self.has_tag?('school')
+ has_tag?('school')
+ end
+
+ def site_administration?
+ has_tag?('site_administration')
end
# The "internal admin" is a special body for internal use.
@@ -379,10 +380,6 @@ class PublicBody < ActiveRecord::Base
end
end
- def site_administration?
- has_tag?('site_administration')
- end
-
class ImportCSVDryRun < StandardError
end