Ruby is not python
This commit is contained in:
parent
1b27ed2f22
commit
019521dc38
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class VouchersController < ApplicationController
|
|||
end
|
||||
else
|
||||
|
||||
render json: "{ Voucher is not valid }" + str(params[:voucher].in?(whitelist)), status: :unprocessable_entity
|
||||
render json: "{ Voucher is not valid }" + params[:voucher].in?(whitelist).to_s, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue