Method: NotifyUser::BaseNotificationsController#read

Defined in:
app/controllers/notify_user/base_notifications_controller.rb

#readObject

get



46
47
48
49
50
51
52
53
# File 'app/controllers/notify_user/base_notifications_controller.rb', line 46

def read
  @notification = NotifyUser::BaseNotification.for_target(@user).where('id = ?', params[:id]).first
  unless @notification.read?
    @notification.mark_as_read!
  end

  redirect_logic(@notification)
end