aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-26 13:05:08 -0700
committerLouise Crow <louise.crow@gmail.com>2013-06-26 13:05:08 -0700
commit27d6ad899f594bd9b79e54cdc5a3c17110f3b26c (patch)
treeb75973ee4325bd11f27220e38d1e899076948c78 /app/mailers
parent9bbc93bfd8ba8aaaf9bd1ad9031368b7faad8239 (diff)
parent3194a7801684d010dac94c26cf39bb780bfcd17e (diff)
Merge branch 'release/0.12'0.12
Conflicts: locale/he_IL/app.po locale/hr_HR/app.po locale/nb_NO/app.po locale/uk/app.po
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/track_mailer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/mailers/track_mailer.rb b/app/mailers/track_mailer.rb
index 7157e12d8..8e9beded6 100644
--- a/app/mailers/track_mailer.rb
+++ b/app/mailers/track_mailer.rb
@@ -65,7 +65,11 @@ class TrackMailer < ApplicationMailer
# Query for things in this track. We use described_at for the
# ordering, so we catch anything new (before described), or
# anything whose new status has been described.
- xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 100, 1)
+ xapian_object = ActsAsXapian::Search.new([InfoRequestEvent], track_thing.track_query,
+ :sort_by_prefix => 'described_at',
+ :sort_by_ascending => true,
+ :collapse_by_prefix => nil,
+ :limit => 100)
# Go through looking for unalerted things
alert_results = []
for result in xapian_object.results