Add survey with target after_event

This commit is contained in:
Stella Rouzi 2018-02-23 11:52:27 +02:00
parent e1adf28081
commit 9908f88570
10 changed files with 45 additions and 9 deletions

View file

@ -785,6 +785,16 @@ class Conference < ApplicationRecord
short_title
end
##
# Returns true or false, if the event is already over or not
#
# ====Returns
# * +true+ -> If the event is over
# * +false+ -> If the event is not over yet
def ended?
end_date < Time.current
end
private
# Returns a different html colour for every i and consecutive colors are