projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fcedc1
)
Make sure the associations with segments and old ways are properly ordered.
author
Tom Hughes
<tom@compton.nu>
Sat, 23 Jun 2007 23:06:48 +0000
(23:06 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 23 Jun 2007 23:06:48 +0000
(23:06 +0000)
app/models/way.rb
patch
|
blob
|
history
diff --git
a/app/models/way.rb
b/app/models/way.rb
index 5a26e221684fbcd7b6ac87d37bee4811c2365391..9658a99291a2b6655013b5c8a4df533f47bf623f 100644
(file)
--- a/
app/models/way.rb
+++ b/
app/models/way.rb
@@
-3,10
+3,10
@@
class Way < ActiveRecord::Base
belongs_to :user
- has_many :way_segments, :foreign_key => 'id'
+ has_many :way_segments, :foreign_key => 'id'
, :order => 'sequence_id'
has_many :way_tags, :foreign_key => 'id'
- has_many :old_ways, :foreign_key =>
:id
+ has_many :old_ways, :foreign_key =>
'id', :order => 'version'
set_table_name 'current_ways'