]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Convert more 'setup do' to 'def setup' for consistency
[rails.git] / app / models / relation.rb
index ed37d159af3422437bdda4d00ce0319b381a3417..e5e4ec894c8d699ca781e69bc6564b376d8988c5 100644 (file)
@@ -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