Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-04-24 13:21:10 +0300
committerToon Claes <toon@gitlab.com>2017-04-27 14:22:17 +0300
commited6ed251afc67f743dbe7b0d22ce76713696fa13 (patch)
tree6b4f6f667c119514ad94be7c849d023d4cdd0c4e /lib/gitlab/asciidoc.rb
parenta53442751f77cd586a511c5a539341377ec22807 (diff)
Remove unused optional parameter `asciidoc_opts`
Diffstat (limited to 'lib/gitlab/asciidoc.rb')
-rw-r--r--lib/gitlab/asciidoc.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/gitlab/asciidoc.rb b/lib/gitlab/asciidoc.rb
index 6a671ab2630..fba80c7132e 100644
--- a/lib/gitlab/asciidoc.rb
+++ b/lib/gitlab/asciidoc.rb
@@ -14,15 +14,11 @@ module Gitlab
# Public: Converts the provided Asciidoc markup into HTML.
#
# input - the source text in Asciidoc format
- # asciidoc_opts - a Hash of options to pass to the Asciidoctor converter
#
- def self.render(input, asciidoc_opts = {})
- asciidoc_opts.reverse_merge!(
- safe: :secure,
- backend: :gitlab_html5,
- attributes: []
- )
- asciidoc_opts[:attributes].unshift(*DEFAULT_ADOC_ATTRS)
+ def self.render(input)
+ asciidoc_opts = { safe: :secure,
+ backend: :gitlab_html5,
+ attributes: DEFAULT_ADOC_ATTRS }
plantuml_setup