summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 15:06:16 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 15:12:15 +0200
commit3d2b6a3d7b51b8caf5a9133b6c0f0a6da3ab6d9d (patch)
treeb5b39b88afe189f4f55d19d19c416fd4a8a0e7ab
parent4d9b34bb7e8eddef4db3e664356b19e121ea381c (diff)
downloadgitlab-ce-3d2b6a3d7b51b8caf5a9133b6c0f0a6da3ab6d9d.tar.gz
Fix methods visibility in markdown filter class
-rw-r--r--lib/banzai/filter/markdown_filter.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/banzai/filter/markdown_filter.rb b/lib/banzai/filter/markdown_filter.rb
index 9b209533a89..ff580ec68f8 100644
--- a/lib/banzai/filter/markdown_filter.rb
+++ b/lib/banzai/filter/markdown_filter.rb
@@ -12,7 +12,12 @@ module Banzai
html
end
- private
+ def self.renderer
+ @renderer ||= begin
+ renderer = Redcarpet::Render::HTML.new
+ Redcarpet::Markdown.new(renderer, redcarpet_options)
+ end
+ end
def self.redcarpet_options
# https://github.com/vmg/redcarpet#and-its-like-really-simple-to-use
@@ -28,12 +33,7 @@ module Banzai
}.freeze
end
- def self.renderer
- @renderer ||= begin
- renderer = Redcarpet::Render::HTML.new
- Redcarpet::Markdown.new(renderer, redcarpet_options)
- end
- end
+ private_class_method :redcarpet_options
end
end
end