X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20aa4ba31b61a926c8fcb98f88c02f7d1cbeb655..5c9f1310b016d94becc2b0e02d080ec65eef5879:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index ed37d159a..e5e4ec894 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -370,7 +370,7 @@ class Relation < ActiveRecord::Base # materially change the rest of the relation. any_relations = changed_members.collect { |_id, type| type == "relation" } - .inject(false) { |a, e| a || e } + .inject(false) { |acc, elem| acc || elem } update_members = if tags_changed || any_relations # add all non-relation bounding boxes to the changeset