diff options
author | francis <francis> | 2008-03-25 17:25:08 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-25 17:25:08 +0000 |
commit | 596ef551443f5916e5cbce8834b7fd708207b57f (patch) | |
tree | 8c0de727515f9662c5dccbe45f52e6465b6ee4e3 /app/models/public_body.rb | |
parent | fcb843b5e42c20ccf25c86d11a256b62bcd52f95 (diff) |
requested_from: requested_by: and type: searches.
Diffstat (limited to 'app/models/public_body.rb')
-rw-r--r-- | app/models/public_body.rb | 8 |
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) |