Rooms belong to venue
This commit is contained in:
parent
feabbfbc99
commit
f840f2b3f0
31 changed files with 221 additions and 166 deletions
|
|
@ -707,7 +707,7 @@ class Conference < ActiveRecord::Base
|
|||
# * +True+ -> One room or more
|
||||
# * +False+ -> No room
|
||||
def rooms_set?
|
||||
program.rooms.count > 0
|
||||
venue.present? && venue.rooms.count > 0
|
||||
end
|
||||
|
||||
# Checks if the conference has a venue object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue