bug: resolve false positive "oops" redirect

This commit is contained in:
Mark Moser
2017-04-18 10:39:49 -05:00
parent 76e7401cec
commit 49035929fb
3 changed files with 31 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class CandidateController < ApplicationController
end
def send_to_oops
redirect_to welcome_path and return if current_candidate && current_candidate.stale?
redirect_to oops_path if current_candidate
end
end