update
This commit is contained in:
parent
28e55f3f50
commit
a5a2db4077
156 changed files with 3203 additions and 1206 deletions
|
|
@ -1,6 +1,7 @@
|
|||
module Api
|
||||
module V1
|
||||
class RoomsController < Api::BaseController
|
||||
load_resource :conference, find_by: :short_title
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
|
|
@ -8,7 +9,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