mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Fix rspec tests because of the changes to the cfp
Remove redundant association Note: a conference created with :full_conference already has a cfp
This commit is contained in:
parent
2bff918556
commit
a1124546f1
16 changed files with 78 additions and 74 deletions
|
|
@ -135,7 +135,7 @@ class Program < ActiveRecord::Base
|
|||
# * +false+ -> If the CFP is not set or today isn't in the CFP period.
|
||||
# * +true+ -> If today is in the CFP period.
|
||||
def cfp_open?
|
||||
cfp = cfps.events
|
||||
cfp = self.cfp
|
||||
|
||||
cfp.present? && (cfp.start_date..cfp.end_date).cover?(Date.current)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue