X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..baf10cd39289cd7e94a819305e46f43e85a136c6:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 96422a8f6..e61661a70 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -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