X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9a7db5d63b12f90b944f4ad151e5299d1745ecfb..97aefa23d0606edaee71d04cf6c1a2006689b1fa:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index b042be59e..64b11cf67 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -13,7 +13,7 @@ class Way < ActiveRecord::Base has_many :way_tags, :foreign_key => 'id' has_many :containing_relation_members, :class_name => "RelationMember", :as => :member - has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation + has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation, :extend => ObjectFinder def self.from_xml(xml, create=false) begin