]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Fix rubocop lint issues
[rails.git] / app / models / way.rb
index 96422a8f6e91f5cc487577efe30951936113f5cb..e61661a70e72d1febd16d1b6685d724d1afe97c7 100644 (file)
@@ -86,9 +86,9 @@ class Way < ActiveRecord::Base
 
   # You can't pull in all the tags too unless we put a sequence_id on the way_tags table and have a multipart key
   def self.find_eager(id)
-    way = Way.find(id, :include => { :way_nodes => :node })
+    Way.find(id, :include => { :way_nodes => :node })
     # If waytag had a multipart key that was real, you could do this:
-    # way = Way.find(id, :include => [:way_tags, {:way_nodes => :node}])
+    # Way.find(id, :include => [:way_tags, {:way_nodes => :node}])
   end
 
   # Find a way given it's ID, and in a single SQL call also grab its nodes and tags