]> git.openstreetmap.org Git - rails.git/commit
Fix error resolving relation parents
authorTom Hughes <tom@compton.nu>
Wed, 23 Jul 2014 23:23:45 +0000 (00:23 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 Jul 2014 23:23:45 +0000 (00:23 +0100)
commitc72940684ea5c702bf2963fae096a2d48d845267
tree866b77a191195007413313a6d31561a2740c2726
parent0b9bf8d816902f969bac5b522c18067ad06df445
Fix error resolving relation parents

It's not entirely clear why specifying the foreign key explicitly
fixes this - the value given is what it should default to - but
without this it finds the child relation instead when looking at
the parents of a relation.

Fixes #789
app/models/relation_member.rb
test/models/node_test.rb
test/models/relation_test.rb
test/models/way_test.rb