X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/de29e9b3f59d7a06fbe2e32096328bd8a6ed2b3a..0888f43d7b5a5e23874ff1a291049b90481d1273:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index d5117b7c3..202db12da 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -381,7 +381,7 @@ class Relation < ActiveRecord::Base # reasonable on the assumption that adding or removing members doesn't # materially change the rest of the relation. any_relations = - changed_members.collect { |_id, type| type == "relation" } + changed_members.collect { |type, _id, _role| type == "Relation" } .inject(false) { |acc, elem| acc || elem } update_members = if tags_changed || any_relations