X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/96b1bff9fb7012868edc90d44ac06c91f39f3e2c..282ff4936cc1831fcbe9de0dd2d30c6bccd62b19:/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