mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
2 lines
131 B
Ruby
2 lines
131 B
Ruby
json.extract! @coupon, :id, :code, :type, :percent_off
|
|
json.amount_off (@coupon.amount_off / 100.00) unless @coupon.amount_off.nil? |