Method: ActivityNotification::NotificationsApiController#open_all
- Defined in:
- app/controllers/activity_notification/notifications_api_controller.rb
#open_all(params) ⇒ JSON
Opens all notifications of the target.
POST /:target_type/:target_id/notifications/open_all
49 50 51 52 53 54 55 |
# File 'app/controllers/activity_notification/notifications_api_controller.rb', line 49 def open_all super render json: { count: @opened_notifications.size, notifications: @opened_notifications.as_json() } end |