def index_link(model_class, url_params: {}, html_options: {}, &block)
      return if unauthorized? :index, model_class
      html_options, block = LinkOptionsNormalizer.normalize(
        html_options, block,
        block: -> { to_model_label model_class }
      )

      path = index_path model_class, url_params: url_params
      link_to path, html_options, &block
    end
def index_link(model_class, url_params: {}, html_options: {}, &block)
      return if unauthorized? :index, model_class
      html_options, block = LinkOptionsNormalizer.normalize(
        html_options, block,
        block: -> { to_model_label model_class }
      )

      path = index_path model_class, url_params: url_params
      link_to path, html_options, &block
    end
Return link to index page by a given model class

 If user's not authorized, nil will be returned
 @param model_class [Class]
 @param url_params [ActionController::Parameters, Hash]
 @param html_options [Hash] (@see ActionView::Helpers::UrlHelper#link_to)
 @return [String, nil] anchor element