Skip to content
Permalink
Browse files Browse the repository at this point in the history
Some trivial bug-fixes.
Signed-off-by: MORITA Shintaro <shin@sysphonic.com>
  • Loading branch information
MORITA Shintaro committed Jul 7, 2015
1 parent 8004ee0 commit d9ed965
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -99,7 +99,12 @@ def gate_process

HistoryHelper.keep_last(request)

@login_user = User.find(session[:login_user_id])
SqlHelper.validate_token([session[:login_user_id]])
begin
@login_user = User.find(session[:login_user_id])
rescue => evar
@login_user = nil
end

begin
if @login_user.nil? \
Expand Down

0 comments on commit d9ed965

Please sign in to comment.