Commit 1fe753d6 authored by jplang's avatar jplang
Browse files

Pull-up retrieve_supported_languages private class method (#26055).

Patch by Mischa The Evil.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3c7577e6
......@@ -55,6 +55,15 @@ module Redmine
module CodeRay
require 'coderay'
def self.retrieve_supported_languages
::CodeRay::Scanners.list +
# Add CodeRay scanner aliases -
# Remove internal CodeRay scanners
%w(debug default raydebug scanner).map(&:to_sym)
private_class_method :retrieve_supported_languages
class << self
# Highlights +text+ as the content of +filename+
# Should not return line numbers nor outer pre tag
......@@ -70,10 +79,7 @@ module Redmine
def language_supported?(language)
supported_languages =
::CodeRay::Scanners.list + -
%w(debug default raydebug scanner).map(&:to_sym)
supported_languages = retrieve_supported_languages
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment