From f31d43619af2a0573969496976da7c70cc1df652 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 11 Mar 2016 18:10:39 +0800 Subject: [PATCH] removed code for websockets --- app/controllers/admin/tickets_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/admin/tickets_controller.rb b/app/controllers/admin/tickets_controller.rb index 1ec146c..d5eb9ee 100644 --- a/app/controllers/admin/tickets_controller.rb +++ b/app/controllers/admin/tickets_controller.rb @@ -204,12 +204,12 @@ class Admin::TicketsController < OrbitAdminController rescue e end end - url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}" - Fiber.new{ - params[:user_tags].each do |user_id| - WebsocketRails["tag_notifications_for_#{user_id}".to_sym].trigger(:new_notification_recieved, {"ticket_link" => "#{tq.ticket.subject}", "total_ticket_count" => Ticket.get_ticket_unread_count_for_user(user_id), "blink_message" => "#{current_user.name} tagged you!"}) - end - }.resume + # url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}" + # Fiber.new{ + # params[:user_tags].each do |user_id| + # WebsocketRails["tag_notifications_for_#{user_id}".to_sym].trigger(:new_notification_recieved, {"ticket_link" => "#{tq.ticket.subject}", "total_ticket_count" => Ticket.get_ticket_unread_count_for_user(user_id), "blink_message" => "#{current_user.name} tagged you!"}) + # end + # }.resume end render :partial => "response", :object => response else