aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2012-10-24 10:39:11 +1100
committerMatthew Landauer <matthew@openaustralia.org>2012-10-24 10:39:11 +1100
commit22c51b3b9163f915f20b9fc5ba473955bca39dac (patch)
treeba330fc7eeb22bc322a9cc16f13508f54fc31821
parentd6a7d3181f714a9038bf0d7d4bc47c0dbae386b8 (diff)
When exporting the authorities as csv don't include the internal admin authority
-rw-r--r--app/models/public_body.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 894d5250b..d806450b9 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -500,9 +500,9 @@ class PublicBody < ActiveRecord::Base
return [errors, notes]
end
- # Returns all public bodies as csv
+ # Returns all public bodies (except for the internal admin authority) as csv
def self.export_csv
- public_bodies = PublicBody.find(:all, :order => 'url_name',
+ public_bodies = PublicBody.visible.find(:all, :order => 'url_name',
:include => [:translations, :tags])
FasterCSV.generate() do |csv|
csv << [