Request a booth only when cfp is open

This commit is contained in:
nasia 2017-08-16 11:42:57 +03:00 committed by Stella Rouzi
parent 8b5ebb3dd7
commit 703813248d
3 changed files with 13 additions and 1 deletions

View file

@ -94,6 +94,15 @@ class Cfp < ActiveRecord::Base
find_by(cfp_type: 'tracks')
end
##
# Finds the cfp for booths if it exists
#
# ====Returns
# * +Cfp+ -> The cfp with type 'booths'
def self.for_booths
find_by(cfp_type: 'booths')
end
private
def before_end_of_conference