Order the tracks by ID
This commit is contained in:
parent
8b472d4536
commit
fbea343c10
|
@ -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') }
|
||||
|
|
Loading…
Reference in New Issue