diff options
author | tony <tony> | 2009-03-22 14:21:56 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-22 14:21:56 +0000 |
commit | 49b77267e8d379cd11df95a9a0166f44c1a9a205 (patch) | |
tree | 6325fbe04b4c649b0c56d3c6421cc85531165b41 /app/models | |
parent | 691e55e876278aae1a2ebe625117f3833f17c716 (diff) |
Rollback 14514 and 14515 - model can't call methods in general_controller
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/public_body.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 54a17af38..b95aa6c88 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -25,7 +25,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.137 2009-03-22 10:27:03 tony Exp $ +# $Id: public_body.rb,v 1.138 2009-03-22 14:21:56 tony Exp $ require 'csv' require 'set' @@ -148,15 +148,6 @@ class PublicBody < ActiveRecord::Base return PublicBody.find(old.first.public_body_id) end - # Requests made from this body, via Xapian - def xapian_requests - begin - perform_search([InfoRequestEvent], 'requested_from:' + self.url_name, 'newest', 'request_collapse') - rescue - return nil - end - end - # Set the first letter, which is used for faster queries before_save(:set_first_letter) |