aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 72ee13f98..224e8a1bf 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -127,7 +127,9 @@ class TrackController < ApplicationController
format.atom { render :template => 'track/atom_feed' }
format.json {
render :json =>
- @xapian_object.results.map { |r| {
+ @xapian_object.results.map { |r| r[:model].
+
+ {
# XXX this code is partly duplicated with the request controller
:id => r[:model].id,
:event_type => r[:model].event_type,