houndci fixes
This commit is contained in:
parent
cda2a0a1ae
commit
43c11133e4
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ module Admin
|
||||||
class SchedulesController < ApplicationController
|
class SchedulesController < ApplicationController
|
||||||
before_filter :verify_organizer
|
before_filter :verify_organizer
|
||||||
skip_before_filter :verify_authenticity_token, only: [:update]
|
skip_before_filter :verify_authenticity_token, only: [:update]
|
||||||
layout "schedule"
|
layout 'schedule'
|
||||||
|
|
||||||
def show
|
def show
|
||||||
if @conference.nil?
|
if @conference.nil?
|
||||||
|
|
@ -32,7 +32,7 @@ module Admin
|
||||||
error_message = "Could not find room GUID: #{params[:room]}"
|
error_message = "Could not find room GUID: #{params[:room]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if !error_message.nil?
|
unless error_message.nil?
|
||||||
render json: { 'status' => 'error', 'message' => error_message }, status: 500
|
render json: { 'status' => 'error', 'message' => error_message }, status: 500
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -50,6 +50,5 @@ module Admin
|
||||||
event.save!
|
event.save!
|
||||||
render json: { 'status' => 'ok' }
|
render json: { 'status' => 'ok' }
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue