diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index 04f8696..9b455a0 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -73,8 +73,9 @@ class QuestionsController < InheritedResources::Base # puts "redis key is::::: #{redis_key}" - @question.send_later :export, type, - :response_type => response_type, :redis_key => redis_key + @question.delay(:priority => 15).export(type, + :response_type => response_type, + :redis_key => redis_key) render :text => "Ok! Please wait for the response (as specified by your response_type)" -- libgit2 0.21.2