fix problem with mappings and forking maps

This commit is contained in:
Devin Howard 2015-10-23 22:07:44 +08:00 committed by Connor Turland
parent 1453a3c181
commit 617fe43f71

View file

@ -135,7 +135,7 @@ class MapsController < ApplicationController
@mapping = Mapping.new() @mapping = Mapping.new()
@mapping.user = @user @mapping.user = @user
@mapping.map = @map @mapping.map = @map
@mapping.topic = Topic.find(topic[0]) @mapping.mappable = Topic.find(topic[0])
@mapping.xloc = topic[1] @mapping.xloc = topic[1]
@mapping.yloc = topic[2] @mapping.yloc = topic[2]
@mapping.save @mapping.save
@ -148,7 +148,7 @@ class MapsController < ApplicationController
@mapping = Mapping.new() @mapping = Mapping.new()
@mapping.user = @user @mapping.user = @user
@mapping.map = @map @mapping.map = @map
@mapping.synapse = Synapse.find(synapse_id) @mapping.mappable = Synapse.find(synapse_id)
@mapping.save @mapping.save
end end
end end