Class: UserNotif::NotifsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- UserNotif::NotifsController
- Defined in:
- lib/generators/user_notif/install_templates/notifs_controller.rb
Instance Method Summary collapse
Instance Method Details
#read ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/user_notif/install_templates/notifs_controller.rb', line 6 def read set_notif raise ActiveRecord::RecordNotFound, 'Not Found' unless @notif @notif.update!(unread: false) head :ok end |