From a9da9e604855fec18b5b7af349a0c8c0330ebfea Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Mon, 28 May 2012 10:29:44 +0100 Subject: more comments --- app/controllers/api_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers/api_controller.rb') diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index a152813f0..e5b66e7c3 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -54,12 +54,15 @@ class ApiController < ApplicationController return end + # Save the request, and add the corresponding InfoRequestEvent request.save! request.log_event("sent", :email => nil, :outgoing_message_id => outgoing_message.id, :smtp_message_id => nil ) + + # Return the URL and ID number. render :json => { 'url' => make_url("request", request.url_title), 'id' => request.id -- cgit v1.2.3