diff --git a/app/controllers/emails_controller.rb b/app/controllers/emails_controller.rb index 92f345ab..c4095c24 100644 --- a/app/controllers/emails_controller.rb +++ b/app/controllers/emails_controller.rb @@ -64,10 +64,14 @@ def get_email_template_status end def get_corresponding_application_letter_status - return :accepted if params[:status] == "acceptance" - return :rejected if params[:status] == "rejection" - # default value - return :accepted + case params[:status] + when "acceptance" + return :accepted + when "rejection" + return :rejected + else + return :accepted + end end # Only allow a trusted parameter "white list" through.