Show most recent conference first in conferences#index
This commit is contained in:
parent
c49606c815
commit
b0ffa683dc
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class ConferenceController < ApplicationController
|
||||||
load_resource :program, through: :conference, singleton: true, except: :index
|
load_resource :program, through: :conference, singleton: true, except: :index
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@current = Conference.where('end_date >= ?', Date.current).order('start_date ASC')
|
@current = Conference.where('end_date >= ?', Date.current).reorder(start_date: :asc)
|
||||||
@antiquated = @conferences - @current
|
@antiquated = @conferences - @current
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue