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.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 066ca8200..2403a97d8 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -21,7 +21,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.46 2008-03-24 20:17:01 francis Exp $
+# $Id: public_body.rb,v 1.47 2008-03-25 17:25:09 francis Exp $
require 'csv'
require 'set'
@@ -72,8 +72,12 @@ class PublicBody < ActiveRecord::Base
acts_as_solr :fields => [
{:name => { :boost => 10.0 }},
{:short_name => { :boost => 10.0 }},
- { :created_at => :date }
+ { :created_at => :date },
+ { :moo => :string }
]
+ def moo
+ "authority"
+ end
# When name or short name is changed, also change the url name
def short_name=(short_name)