diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-08 15:40:23 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-08 15:40:23 +0300 |
commit | 1a10945066d0da1801bb4cf89ce5f54996f1756f (patch) | |
tree | 2fb15e2b885c67a1ec02e70f80e8cc80b3420000 /lib/gitlab/markdown | |
parent | 13f44822d97e643b55047cf619f7bb1f354f165b (diff) |
Fix RedactorFilter
Diffstat (limited to 'lib/gitlab/markdown')
-rw-r--r-- | lib/gitlab/markdown/filter/redactor_filter.rb | 2 |
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 |