This commit is contained in:
Jeff Atwood 2019-01-21 01:19:44 -08:00
commit 4ad935f958
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
module HighlightJs
HIGHLIGHTJS_DIR = "#{Rails.root}/vendor/assets/javascripts/highlightjs/"
HIGHLIGHTJS_DIR ||= "#{Rails.root}/vendor/assets/javascripts/highlightjs/"
def self.languages
langs = Dir.glob(HIGHLIGHTJS_DIR + "languages/*.js").map do |path|