From b31906823a1f76a65ef4965f32dfd5f29efffeaf Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 4 Jan 2013 21:44:16 -0500 Subject: [PATCH] minor error in controller for deleting mappings --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 5b95df3c..ff976fe7 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -138,7 +138,7 @@ class TopicsController < ApplicationController @map = Map.find(params[:map_id]) @topic = Topic.find(params[:topic_id]) @mappings = @map.mappings.select{|m| - if m.category == "Synapse" + if m.synapse != nil m.synapse.topic1 == @topic || m.synapse.topic2 == @topic else false