docbrown/app/controllers/notifications/reads_controller.rb
Andy Zhao 263a74bcb6 Add more request specs (#460)
* Remove email blank onboarding redirect

* Add authorization specs for video upload

* Add registration spec

* Remove skip before actions for signup complete

* Use new param for abuse reports

* Remove else because it never runs

* Add more dashboard request specs

* Use let with no bang in case there are errors
2018-06-20 17:46:23 -04:00

9 lines
264 B
Ruby

class Notifications::ReadsController < ApplicationController
def create
result = ""
result = ReadNotificationsService.new(current_user).mark_as_read if current_user
current_user&.touch(:last_notification_activity)
render plain: result
end
end