From 93e1dfb923d0f59494edc0c3225b703346bc9781 Mon Sep 17 00:00:00 2001 From: spengreb Date: Tue, 8 Oct 2019 20:15:15 +0200 Subject: [PATCH] Move verbose --- app/controllers/vouchers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/vouchers_controller.rb b/app/controllers/vouchers_controller.rb index e430f69..0dc56aa 100644 --- a/app/controllers/vouchers_controller.rb +++ b/app/controllers/vouchers_controller.rb @@ -31,7 +31,7 @@ class VouchersController < ApplicationController end else - render json: "Voucher is not valid. Whitelisted: " + params[:voucher].in?(whitelist).to_s + ". Exists: " + Voucher.exists?(vouchee: params[:voucher]).to_s, status: :unprocessable_entity + render json: "Voucher is not valid. Whitelisted: " + params[:voucher].in?(whitelist).to_s + ". Exists: " + Voucher.exists?(vouchee: params[:voucher]).to_s + ". " + whitelist, status: :unprocessable_entity end