1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-31 20:52:21 +01:00
fab-manager/app/views/api/coupons/_coupon.json.jbuilder

2 lines
137 B
Plaintext
Raw Normal View History

json.extract! coupon, :id, :name, :code, :percent_off, :valid_until, :max_usages, :active, :created_at
json.usages @coupon.invoices.count