Rooms belong to venue
This commit is contained in:
parent
1fcefafe64
commit
3c6ddb2f52
31 changed files with 213 additions and 165 deletions
|
|
@ -8,7 +8,7 @@ module Api
|
|||
rooms = Room.all
|
||||
else
|
||||
conference = Conference.find_by_guid(params[:conference_id])
|
||||
rooms = conference.rooms
|
||||
rooms = conference.venue.rooms if conference.venue
|
||||
end
|
||||
respond_with rooms
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue