fixes specs
This commit is contained in:
@@ -26,9 +26,13 @@ class Officing::BaseController < ApplicationController
|
||||
end
|
||||
|
||||
def verify_booth
|
||||
if session[:booth_id].blank?
|
||||
if current_booth.blank?
|
||||
redirect_to new_officing_booth_path
|
||||
end
|
||||
end
|
||||
|
||||
def current_booth
|
||||
Poll::Booth.where(id: session[:booth_id]).first
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -38,8 +38,4 @@ class Officing::VotersController < Officing::BaseController
|
||||
.first
|
||||
end
|
||||
|
||||
def current_booth
|
||||
Poll::Booth.find(session[:booth_id])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user