All events grouped by date and time

The events are ordered by date and time in the all events section of the schedule. The event schdule definition in program has been changed to order the events.
This commit is contained in:
Ana 2016-06-10 22:39:06 +02:00
parent 7a95c43a57
commit 69043e1549
6 changed files with 97 additions and 20 deletions

View file

@ -27,7 +27,7 @@ class Program < ActiveRecord::Base
end
def scheduled
where.not(start_time: nil).where.not(room: nil)
where.not(start_time: nil).where.not(room: nil).order(start_time: :asc)
end
def highlights