]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_node.rb
When I navigate to /browse/{node,way,relation}/:id/history there's no
[rails.git] / app / models / way_node.rb
index 7f7789303f736da688195cad874df0c324d93aa1..957016b9dd6fd91d1b50b7b54faffc060888a66b 100644 (file)
@@ -3,4 +3,6 @@ class WayNode < ActiveRecord::Base
 
   set_primary_keys :id, :sequence_id
   belongs_to :node
+
+  belongs_to :way, :foreign_key => :id
 end