mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
5 lines
183 B
Ruby
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?
|