You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sent_notifications_controller.rb
    path of file: ./repos/gitlabhq/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class SentNotificationsController < ApplicationController
  skip_before_action :a
    
  def noteable_path(noteable)
    case noteable
    when Issue
      issue_path(noteable)
    when MergeRequest
      merge_request_path(noteable)
    else
      root_path
    end