From 593b9fa15f00a12a53c97e349aed9bc437a1b51b Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 15 Jul 2008 17:24:25 +0000 Subject: Whoops, undo white space change that accidentally committed after making slide show for talk. --- app/models/info_request.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'app/models') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 829c31078..400b3a11e 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -22,7 +22,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.119 2008-07-15 08:29:34 francis Exp $ +# $Id: info_request.rb,v 1.120 2008-07-15 17:24:25 francis Exp $ require 'digest/sha1' require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian') @@ -78,12 +78,8 @@ class InfoRequest < ActiveRecord::Base # (Not really the right place to put it, but everything can get it here, and it # does *mainly* find info requests, via their events, so hey) def InfoRequest.full_search(models, query, order, ascending, collapse, per_page, page) - - offset = (page - 1) * per_page - - return ::ActsAsXapian::Search.new( models, query, :offset => offset, :limit => per_page, @@ -91,9 +87,6 @@ class InfoRequest < ActiveRecord::Base :sort_by_ascending => ascending, :collapse_by_prefix => collapse ) - - - end # For debugging -- cgit v1.2.3