aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-10-20 15:58:58 +0100
committerFrancis Irving <francis@mysociety.org>2010-10-20 15:58:58 +0100
commit7b85b81d1076169a9b01c301545f0f9192540f97 (patch)
tree07b9afb00dd2c2604025e5ff79a51bd0296d1c28 /app/controllers/track_controller.rb
parente36720f39d8e8e89f5adf396aa76cd2509574da3 (diff)
Return more info in request JSON response.
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,