fix problem with mappings and forking maps
This commit is contained in:
parent
1453a3c181
commit
617fe43f71
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue