Types
This commit is contained in:
parent
93e1dfb923
commit
9f5ee2f9db
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class VouchersController < ApplicationController
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
||||||
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
|
render json: "Voucher is not valid. Whitelisted: " + params[:voucher].in?(whitelist).to_s + ". Exists: " + Voucher.exists?(vouchee: params[:voucher]).to_s + ". " + whitelist.to_s, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue