finish settings and public recordings

This commit is contained in:
Josh
2018-06-12 17:28:02 -04:00
parent 39b687a58f
commit 8390e075e1
14 changed files with 72 additions and 72 deletions

View File

@ -25,9 +25,10 @@ class RoomsController < ApplicationController
# GET /r/:room_uid
def show
if current_user && @room.owned_by?(current_user)
@is_running = @room.is_running?
@recordings = @room.recordings
@is_running = @room.is_running?
else
@recordings = @room.public_recordings
render :join
end
end
@ -97,10 +98,8 @@ class RoomsController < ApplicationController
meta = {
"meta_#{META_LISTED}": (params[:state] == "public")
}
puts '-------------'
puts params[:record_id]
res = @room.update_recording(params[:record_id], meta)
puts res
redirect_to @room if res[:updated]
end