Added first attempt at bounding box support in changesets and tests for the same.

This commit is contained in:
Matt Amos 2008-11-04 15:52:22 +00:00
parent 0ca779e5bd
commit 02fbcf5f06
7 changed files with 189 additions and 7 deletions

View file

@ -99,9 +99,8 @@ class DiffReader
# diff, so we must fix these before saving the element.
new.fix_placeholders!(ids)
# set the initial version to zero and save (which increments it)
new.version = 0
new.save_with_history!
# create element given user
new.create_with_history(@changeset.user)
# save placeholder => allocated ID map
ids[model.to_s.downcase.to_sym][placeholder_id] = new.id