From 191af4a8b4bdd45c58917e34b545907b4e5df1b4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 16 May 2014 22:39:53 +0100 Subject: [PATCH 1/1] Remove bogus sort that is implied by the intermate association --- app/models/way.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/way.rb b/app/models/way.rb index 1da048c96..e78d0df0b 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -12,7 +12,7 @@ class Way < ActiveRecord::Base has_many :old_ways, -> { order(:version) } has_many :way_nodes, -> { order(:sequence_id) } - has_many :nodes, -> { order("sequence_id") }, :through => :way_nodes + has_many :nodes, :through => :way_nodes has_many :way_tags -- 2.39.5