mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
show conference until its last day and order by start date
This commit is contained in:
parent
f905bb8f8f
commit
ffadfca7a2
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class HomeController < ApplicationController
|
||||
def index
|
||||
@today = Date.current
|
||||
@current = Conference.where("start_date >= ?", @today)
|
||||
@current = Conference.where("end_date >= ?", @today).order("start_date ASC")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue