You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by as...@apache.org on 2008/11/19 00:33:08 UTC

svn commit: r718784 - /ode/sandbox/singleshot/app/controllers/activity_controller.rb

Author: assaf
Date: Tue Nov 18 15:33:08 2008
New Revision: 718784

URL: http://svn.apache.org/viewvc?rev=718784&view=rev
Log:
Added callback to JSON response

Modified:
    ode/sandbox/singleshot/app/controllers/activity_controller.rb

Modified: ode/sandbox/singleshot/app/controllers/activity_controller.rb
URL: http://svn.apache.org/viewvc/ode/sandbox/singleshot/app/controllers/activity_controller.rb?rev=718784&r1=718783&r2=718784&view=diff
==============================================================================
--- ode/sandbox/singleshot/app/controllers/activity_controller.rb (original)
+++ ode/sandbox/singleshot/app/controllers/activity_controller.rb Tue Nov 18 15:33:08 2008
@@ -29,7 +29,7 @@
         @graph = for_stakeholder.for_dates(Date.current - 1.month)
       end
       want.atom { @root_url = activity_url }
-      want.json { render :json=>@activities }
+      want.json { render :json=>@activities, :callback=>params[:callback] }
       want.xml { render :xml=>@activities }
     end
   end