mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue