This commit is contained in:
David Sedeño 2018-03-15 00:00:36 +00:00 • committed by GitHub
commit 4b7dbfbde6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 174 additions and 140 deletions

View file

@ -6,6 +6,10 @@ class ConferencesController < ApplicationController
def index
@current = Conference.where('end_date >= ?', Date.current).reorder(start_date: :asc)
@antiquated = @conferences - @current
redirect_to @current.first if @current.count == 1 &&
@current.first.splashpage &&
@current.first.splashpage.public
end
def show