Add survey with target after_event
This commit is contained in:
parent
e1adf28081
commit
9908f88570
10 changed files with 45 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue