From fbdfff6b83fe6f624b50a4eb3023adddbb83bc25 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 28 Jan 2014 23:34:50 -0500 Subject: [PATCH] temporarily commented out lines that send realtime messages via redis --- app/controllers/mappings_controller.rb | 2 +- app/controllers/synapses_controller.rb | 12 ++++++------ app/controllers/topics_controller.rb | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/controllers/mappings_controller.rb b/app/controllers/mappings_controller.rb index b0a5f03c..e65dcdfa 100644 --- a/app/controllers/mappings_controller.rb +++ b/app/controllers/mappings_controller.rb @@ -44,7 +44,7 @@ class MappingsController < ApplicationController @mapping.save() #push add to map to realtime viewers of the map - @mapping.message 'create',@user.id + #@mapping.message 'create',@user.id end end diff --git a/app/controllers/synapses_controller.rb b/app/controllers/synapses_controller.rb index 37102afb..6c99bfc9 100644 --- a/app/controllers/synapses_controller.rb +++ b/app/controllers/synapses_controller.rb @@ -101,7 +101,7 @@ class SynapsesController < ApplicationController @mapping.save #push add to map to realtime viewers of the map - @mapping.message 'create',@user.id + #@mapping.message 'create',@user.id # set the permission of the synapse to whatever the permission of the #map is @@ -156,11 +156,11 @@ class SynapsesController < ApplicationController #push notify to anyone viewing this synapse on a map in realtime (see mapping.rb to understand the 'message' action) # if the topic was private and is being switched to PU or CO it is the same as being created for other viewers if @permissionBefore == "private" and @permissionAfter != "private" - @synapse.message 'create',@current.id + #@synapse.message 'create',@current.id elsif @permissionBefore != "private" and @permissionAfter == "private" - @synapse.message 'destroy',@current.id + #@synapse.message 'destroy',@current.id else - @synapse.message 'update',@current.id + #@synapse.message 'update',@current.id end end @@ -177,7 +177,7 @@ class SynapsesController < ApplicationController @mapping = Mapping.find_by_synapse_id_and_map_id(params[:synapse_id],params[:map_id]) #push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action) - @mapping.message 'destroy',@user.id + #@mapping.message 'destroy',@user.id @mapping.delete @@ -193,7 +193,7 @@ class SynapsesController < ApplicationController @synapse.mappings.each do |m| #push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action) - m.message 'destroy',@current.id + #m.message 'destroy',@current.id m.delete end diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 9b89c0bc..0a5d0ea4 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -127,7 +127,7 @@ class TopicsController < ApplicationController @mapping.save #push add to map to realtime viewers of the map - @mapping.message 'create',@user.id + #@mapping.message 'create',@user.id end respond_to do |format| @@ -170,11 +170,11 @@ class TopicsController < ApplicationController #push notify to anyone viewing this topic on a map in realtime (see mapping.rb to understand the 'message' action) # if the topic was private and is being switched to PU or CO it is the same as being created for other viewers if @permissionBefore == "private" and @permissionAfter != "private" - @topic.message 'create',@current.id + #@topic.message 'create',@current.id elsif @permissionBefore != "private" and @permissionAfter == "private" - @topic.message 'destroy',@current.id + #@topic.message 'destroy',@current.id else - @topic.message 'update',@current.id + #@topic.message 'update',@current.id end end @@ -198,14 +198,14 @@ class TopicsController < ApplicationController @mappings.each do |m| #push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action) - m.message 'destroy',@current.id + #m.message 'destroy',@current.id m.delete end #push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action) - @mapping.message 'destroy',@current.id + #@mapping.message 'destroy',@current.id @mapping.delete @@ -226,7 +226,7 @@ class TopicsController < ApplicationController @synapses.each do |synapse| synapse.mappings.each do |m| #push notify to anyone viewing same map in realtime (see mapping.rb to understand the 'message' action) - m.message 'destroy',@current.id + #m.message 'destroy',@current.id m.delete end @@ -236,7 +236,7 @@ class TopicsController < ApplicationController @mappings.each do |mapping| #push notify to anyone viewing a map with this topic in realtime (see mapping.rb to understand the 'message' action) - mapping.message 'destroy',@current.id + #mapping.message 'destroy',@current.id mapping.delete end