Refactoring the amf controller, and all models so that save_with_history! is now...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Thu, 4 Dec 2008 17:30:17 +0000 (17:30 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Thu, 4 Dec 2008 17:30:17 +0000 (17:30 +0000)
commite9527b363da441337ac8c44c9d3d3feada3eaa9c
tree0f74361f57667b7dc412c4dbc3b4b498b20a13bc
parentd9c6758ee6184692fd4219befe13adf6dfa6e32b
Refactoring the amf controller, and all models so that save_with_history! is now private. Everyone should use create_with_history, delete_with_history, and update_from instead. Also gets the amf controller to do version checks in the node/way/relation models. Needs checked. This breaks Potlatch until #1376 is fixed.
app/controllers/amf_controller.rb
app/models/changeset.rb
app/models/node.rb
app/models/relation.rb
app/models/way.rb
test/unit/node_test.rb