aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/public_body.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/public_body.rb')
-rw-r--r--app/models/public_body.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 83eb1e501..9362ecf20 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -26,7 +26,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: public_body.rb,v 1.148 2009-07-14 11:29:12 francis Exp $
+# $Id: public_body.rb,v 1.149 2009-08-26 00:45:38 francis Exp $
require 'csv'
require 'set'
@@ -276,6 +276,9 @@ class PublicBody < ActiveRecord::Base
end
return false
end
+ def add_tag_if_not_already_present(tag)
+ self.tag_string = self.tag_string + " " + tag
+ end
# Find all public bodies with a particular tag
def self.find_by_tag(tag)