mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 20:47:46 +01:00
no more thread.new
This commit is contained in:
parent
0a23494962
commit
309fa939aa
1 changed files with 2 additions and 1 deletions
|
@ -47,11 +47,12 @@ class Ajax::InboxController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
# sharing
|
# sharing
|
||||||
Thread.new do
|
begin
|
||||||
share_to = JSON.parse params[:share]
|
share_to = JSON.parse params[:share]
|
||||||
current_user.services.each do |service|
|
current_user.services.each do |service|
|
||||||
service.post(answer) if share_to.include? service.provider
|
service.post(answer) if share_to.include? service.provider
|
||||||
end
|
end
|
||||||
|
rescue
|
||||||
end
|
end
|
||||||
|
|
||||||
@status = :okay
|
@status = :okay
|
||||||
|
|
Loading…
Reference in a new issue