]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_node.rb
Force all OpenLayers resources to load through the asset pipeline
[rails.git] / app / models / way_node.rb
index 06515fc20711e179f978264e0b1514d75d462181..1a2e6928a5e9289dba8a711c467a830eb013ef3f 100644 (file)
@@ -1,5 +1,7 @@
 class WayNode < ActiveRecord::Base
   set_table_name 'current_way_nodes'
 class WayNode < ActiveRecord::Base
   set_table_name 'current_way_nodes'
+  set_primary_keys :way_id, :sequence_id
 
 
+  belongs_to :way
   belongs_to :node
 end
   belongs_to :node
 end