From fddec496558da24c333343c03e8a404fa907f944 Mon Sep 17 00:00:00 2001 From: maxwell Date: Wed, 27 Oct 2010 18:02:06 -0700 Subject: [PATCH] adding nexttick --- app/controllers/publics_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/publics_controller.rb b/app/controllers/publics_controller.rb index 8ed286aa3..66efa8c34 100644 --- a/app/controllers/publics_controller.rb +++ b/app/controllers/publics_controller.rb @@ -46,7 +46,11 @@ class PublicsController < ApplicationController Rails.logger.error("Received post for nonexistent person #{params[:id]}") return end - @user.receive_salmon params[:xml] + + EM::next_tick { + puts "foobar!" + @user.receive_salmon params[:xml] + } end end