wait for moderator with action cable

This commit is contained in:
Zachary Chai
2016-10-26 17:15:44 -04:00
parent 3aeef0a4cf
commit b701f2e9a6
16 changed files with 167 additions and 33 deletions

View File

@ -10,6 +10,10 @@ class LandingController < ApplicationController
end
end
def wait_for_moderator
render layout: false
end
def admin?
@user == current_user
end
@ -20,7 +24,7 @@ class LandingController < ApplicationController
def render_meeting
@meeting_id = params[:id]
params[:action] = 'meetings'
render :action => 'meeting'
render :action => 'meetings'
end
def render_room
@ -30,7 +34,7 @@ class LandingController < ApplicationController
redirect_to root_path
return
end
render :action => 'room'
render :action => 'rooms'
end
end