Class: NotificationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/notifications_controller.rb

Overview

Record the user opening the email

Instance Method Summary collapse

Instance Method Details

#showObject

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