Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NotificationsController < ApplicationController
- def create
- NotificationsJob.perform_async(notification_params)
- render json: { message: "Notifications sent" }, status: :ok
- end
- private
- def notification_params
- params.require(:notification).permit(:content, recipients: [])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement