]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_node.rb
Eager load node and way details when processing a map call.
[rails.git] / app / models / old_way_node.rb
index 85a6f3c1c6da03105582de4243bbaf90c893f9d6..7420b5cfc6de874fff207e65571eda62f4e9a7ae 100644 (file)
@@ -2,4 +2,6 @@ class OldWayNode < ActiveRecord::Base
   set_table_name 'way_nodes'
 
   set_primary_keys :id, :version, :sequence_id
+
+  belongs_to :way, :foreign_key=> :id
 end