20690: Remove workbench1 and testing/packaging references.
[arvados.git] / apps / workbench / config / initializers / redcloth.rb
diff --git a/apps/workbench/config/initializers/redcloth.rb b/apps/workbench/config/initializers/redcloth.rb
deleted file mode 100644 (file)
index e0d6ac4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-module RedClothArvadosLinkExtension
-
-  class RedClothViewBase < ActionView::Base
-    include ApplicationHelper
-    include ActionView::Helpers::UrlHelper
-    include Rails.application.routes.url_helpers
-
-    def helper_link_to_if_arvados_object(link, opts)
-      link_to_if_arvados_object(link, opts)
-    end
-  end
-
-  def refs_arvados(text)
-    text.gsub!(/"(?!\s)([^"]*\S)":(\S+)/) do
-      text, link = $~[1..2]
-      arvados_link = RedClothViewBase.new.helper_link_to_if_arvados_object(link, { :link_text => text })
-      # if it's not an arvados_link the helper will return the link unprocessed and so we will reconstruct the textile link string so it can be processed normally
-      (arvados_link == link) ? "\"#{text}\":#{link}" : arvados_link
-    end
-  end
-end
-
-RedCloth.send(:include, RedClothArvadosLinkExtension)