summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-08 13:00:15 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-08 13:00:49 +0200
commit9d066bc9417b06c8eaa8a7e5e73b153093102bbc (patch)
treefc2bd06bca76b3849e0e9221996a4086847277a7 /lib
parente6419cecf4221d44be6e80a41ed668bd79f247fb (diff)
downloadgitlab-ce-9d066bc9417b06c8eaa8a7e5e73b153093102bbc.tar.gz
Raise error when a ReferenceFilter doesn't implement referenced_by
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown/reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/reference_filter.rb b/lib/gitlab/markdown/reference_filter.rb
index d334a891509..c7d4b15d458 100644
--- a/lib/gitlab/markdown/reference_filter.rb
+++ b/lib/gitlab/markdown/reference_filter.rb
@@ -25,7 +25,7 @@ module Gitlab
end
def self.referenced_by(node)
- nil
+ raise NotImplementedError, "#{self} does not implement #{__method__}"
end
# Returns a data attribute String to attach to a reference link