DEV: already defined constant 'HIGHLIGHTJS_DIR'
This commit is contained in:
parent
27c421775e
commit
d75510dd2f
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module HighlightJs
|
module HighlightJs
|
||||||
HIGHLIGHTJS_DIR = "#{Rails.root}/vendor/assets/javascripts/highlightjs/"
|
HIGHLIGHTJS_DIR ||= "#{Rails.root}/vendor/assets/javascripts/highlightjs/"
|
||||||
|
|
||||||
def self.languages
|
def self.languages
|
||||||
langs = Dir.glob(HIGHLIGHTJS_DIR + "languages/*.js").map do |path|
|
langs = Dir.glob(HIGHLIGHTJS_DIR + "languages/*.js").map do |path|
|
||||||
|
|
Loading…
Reference in New Issue