Skip to content

Commit

Permalink
DEV: already defined constant 'HIGHLIGHTJS_DIR'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP authored Jan 21, 2019
1 parent 27c4217 commit d75510d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/highlight_js/highlight_js.rb
Original file line number Diff line number Diff line change
@@ -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|
Expand Down

0 comments on commit d75510d

Please sign in to comment.