username validations

This commit is contained in:
Zachary Chai
2016-10-19 16:12:15 -04:00
parent d313c5d373
commit 51d9551877
8 changed files with 26 additions and 10 deletions

View File

@ -22,15 +22,13 @@ class LandingController < ApplicationController
render_meeting
end
def room
render_room
end
def admin?
@user == current_user
end
helper_method :admin?
private
def render_meeting
@resource = params[:resource]
@meeting_token = params[:id] || @meeting_token = helpers.new_meeting_token
@ -47,5 +45,5 @@ class LandingController < ApplicationController
end
render :action => 'room'
end
end