X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cfc14f1ddc0b451dbfdd5994e5672b2f1b11e0a8..def60c193514a0d5067d5c0b007421e1a472b73b:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 8ae6b4084..a77f35fe9 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