1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/api/notifications/_notify_member_about_coupon.json.jbuilder
2016-08-16 18:12:13 +02:00

6 lines
293 B
Ruby

json.title notification.notification_type
json.description t('.enjoy_a_discount_of_PERCENT_with_code_CODE',
PERCENT: notification.attached_object.percent_off,
CODE: notification.attached_object.code)
json.url notification_url(notification, format: :json)