zammad/config/initializers/validate_execjs_engine.rb
2026-01-02 15:41:09 +02:00

5 lines
288 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
if Rails.env.development? && (ExecJS.runtime&.name != 'Node.js (V8)')
raise "The CoffeeScript assets cannot be compiled with the installed JS runtime '#{ExecJS.runtime.name}'. Please use Node.js instead."
end