1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/coupons/validate.json.jbuilder
2020-12-30 12:19:33 +01:00

5 lines
183 B
Ruby

# frozen_string_literal: true
json.extract! @coupon, :id, :code, :type, :percent_off, :validity_per_user
json.amount_off (@coupon.amount_off / 100.00) unless @coupon.amount_off.nil?