aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-08-07 16:55:11 +0100
committerLouise Crow <louise.crow@gmail.com>2013-08-15 10:12:13 +0100
commit38d34a25f74a71621f1b5823a148032cfcba7fba (patch)
tree5094ad88b2e89626b5d2e8db2f778897ab56e6be /app/controllers/api_controller.rb
parente709bfe80409a88dbfae7b62916781ac3ebd6f0b (diff)
Set the calculated state on external requests.
Set to 'waiting_response' on creation, to match the displayed state.
Diffstat (limited to 'app/controllers/api_controller.rb')
-rw-r--r--app/controllers/api_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index 49b226e4b..e7bea67ef 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -63,6 +63,8 @@ class ApiController < ApplicationController
:smtp_message_id => nil
)
+ request.set_described_state('waiting_response')
+
# Return the URL and ID number.
render :json => {
'url' => make_url("request", request.url_title),