summaryrefslogtreecommitdiff
path: root/lib/gitlab/reference_extractor.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-11-19 16:18:13 +0100
committerDouwe Maan <douwe@gitlab.com>2015-11-19 16:18:13 +0100
commite1e67d383e4b56c9e1848aebc175402a71502e82 (patch)
treef8c6ebb928e0cb822d3b8e53788cf5771fd79cfd /lib/gitlab/reference_extractor.rb
parentf5a630111fb1499a1541e77040529f74ca6475ec (diff)
downloadgitlab-ce-e1e67d383e4b56c9e1848aebc175402a71502e82.tar.gz
Move Markdown filters and pipelines into folders.
Diffstat (limited to 'lib/gitlab/reference_extractor.rb')
-rw-r--r--lib/gitlab/reference_extractor.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/reference_extractor.rb b/lib/gitlab/reference_extractor.rb
index e5cafebdbc0..e83167fa7d7 100644
--- a/lib/gitlab/reference_extractor.rb
+++ b/lib/gitlab/reference_extractor.rb
@@ -33,8 +33,7 @@ module Gitlab
#
# Returns the results Array for the requested filter type
def pipeline_result(filter_type)
- klass = "#{filter_type.to_s.camelize}ReferenceFilter"
- filter = Gitlab::Markdown.const_get(klass)
+ filter = Gitlab::Markdown::ReferenceFilter[filter_type]
context = {
pipeline: :reference_extraction,