From fbea343c1022174b3102002d8d004940cde9c147 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 6 Sep 2014 19:04:22 +0300 Subject: [PATCH] Order the tracks by ID --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 99f2c52..d93d3f3 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -8,7 +8,7 @@ class Conference < ActiveRecord::Base translates :title, :description - has_many :tracks + has_many :tracks, -> { order('id asc') } has_many :events, through: :tracks scope :future, -> { where('start_date >= ?', Date.today).order('start_date ASC') }