mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
3 lines
182 B
Ruby
3 lines
182 B
Ruby
json.extract! coupon, :id, :name, :code, :percent_off, :valid_until, :validity_per_user, :max_usages, :active, :created_at
|
|
json.usages coupon.invoices.count
|
|
json.status coupon.status |