summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-08 13:40:23 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-08 13:40:23 +0100
commit1a10945066d0da1801bb4cf89ce5f54996f1756f (patch)
tree2fb15e2b885c67a1ec02e70f80e8cc80b3420000 /lib
parent13f44822d97e643b55047cf619f7bb1f354f165b (diff)
downloadgitlab-ce-1a10945066d0da1801bb4cf89ce5f54996f1756f.tar.gz
Fix RedactorFilter
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown/filter/redactor_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/filter/redactor_filter.rb b/lib/gitlab/markdown/filter/redactor_filter.rb
index bea714a01e7..33ef7ce18b5 100644
--- a/lib/gitlab/markdown/filter/redactor_filter.rb
+++ b/lib/gitlab/markdown/filter/redactor_filter.rb
@@ -27,7 +27,7 @@ module Gitlab
def user_can_reference?(node)
if node.has_attribute?('data-reference-filter')
reference_type = node.attr('data-reference-filter')
- reference_filter = reference_type.constantize
+ reference_filter = Gitlab::Markdown.const_get(reference_type)
reference_filter.user_can_reference?(current_user, node, context)
else