Issue #1259
This commit is contained in:
parent
051e99aca4
commit
c3ac72f0af
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,9 @@ class ConferencesController < ApplicationController
|
|||
|
||||
def index
|
||||
@current = Conference.where('end_date >= ?', Date.current).reorder(start_date: :asc)
|
||||
if @current.count == 1
|
||||
redirect_to "/conferences/#{@current.first.id}"
|
||||
end
|
||||
@antiquated = @conferences - @current
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue