Class: Spree::Admin::NotificationUsersController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Admin::NotificationUsersController
- Defined in:
- app/controllers/spree/admin/notification_users_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/spree/admin/notification_users_controller.rb', line 4 def index notification = SpreeCmCommissioner::CustomerNotification.find(params[:customer_notification_id]) users_with_device_token = fetch_users_with_device_token(notification) render json: users_with_device_token.as_json(only: i[id], methods: i[display_name]) end |