no more thread.new

This commit is contained in:
nilsding 2014-12-13 16:46:27 +01:00
parent 0a23494962
commit 309fa939aa

View file

@ -47,11 +47,12 @@ class Ajax::InboxController < ApplicationController
end
# sharing
Thread.new do
begin
share_to = JSON.parse params[:share]
current_user.services.each do |service|
service.post(answer) if share_to.include? service.provider
end
rescue
end
@status = :okay