Merge pull request #1048 from differentreality/show_recent_conference_first

Show most recent conference first in conferences#index
This commit is contained in:
Henne Vogelsang 2016-06-23 11:57:22 +02:00 committed by GitHub
commit 1bbeac61e8

View file

@ -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