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: routable_actions.rb
    path of file: ./repos/gitlabhq/app/controllers/concerns
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RoutableActions
  extend 
    
  def routable_authorized?(routable, extra_authorization_proc)
    return false unless routable

    action = :"read_#{routable.class.to_s.underscore}"
    return false unless can?(current_user, action, routable)

    if extra_authorization_proc
      extra_authorization_proc.call(routable)
    else
      true
    end