mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +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?
|