X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b8f87e04666479d1037e27aed86f6a024d9e0208..02f768533d75aee98afd15946a61717164cd03e4:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 1126be9f5..f95037ea1 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -3,6 +3,7 @@ class Way < ActiveRecord::Base belongs_to :user + has_many :nodes, :through => :way_nodes, :order => 'sequence_id' has_many :way_nodes, :foreign_key => 'id', :order => 'sequence_id' has_many :way_tags, :foreign_key => 'id'