Rooms belong to venue

This commit is contained in:
Stella Rouzi 2015-11-07 11:43:36 +02:00
parent 1fcefafe64
commit 3c6ddb2f52
31 changed files with 213 additions and 165 deletions

View file

@ -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.