Class: NotificationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- NotificationsController
- Defined in:
- app/controllers/notifications_controller.rb
Overview
Record the user opening the email
Instance Method Summary collapse
-
#show ⇒ Object
Notification was viewed.
Instance Method Details
#show ⇒ Object
Notification was viewed
10 11 12 13 14 15 16 |
# File 'app/controllers/notifications_controller.rb', line 10 def show Notification.find(params[:id]).viewed rescue StandardError => error log_controller_error error ensure redirect_to ActionController::Base.helpers.asset_path('1x1.png') end |