Talk boxes with less information and schedule view simplified

This commit is contained in:
Ana 2016-06-01 11:22:22 +02:00
parent 6ba3512d2b
commit 2905c8858c
8 changed files with 38 additions and 31 deletions

View file

@ -81,6 +81,16 @@ class Conference < ActiveRecord::Base
result
end
##
# Check if there is any event in the program scheduled.
#
# ====Returns
# * +false+ -> If there aren't schedules events
# * +true+ -> If there are schedules events
def scheduled?
self.program.events.where.not(start_time: nil).any?
end
##
# Checks if the user is registered to the conference
#