瀏覽代碼

[ruby/rack] Require ERB explicitly (#10248)

Avoids the following warning when running just the fortune tests:

    \#<NameError: uninitialized constant HelloWorld::ERB
Petrik de Heus 1 月之前
父節點
當前提交
a06834659a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frameworks/Ruby/rack/hello_world.rb

+ 1 - 0
frameworks/Ruby/rack/hello_world.rb

@@ -6,6 +6,7 @@ require_relative 'pg_db'
 require_relative 'config/auto_tune'
 require_relative 'config/auto_tune'
 require 'rack'
 require 'rack'
 require 'json'
 require 'json'
+require 'erb'
 
 
 if RUBY_PLATFORM == 'java'
 if RUBY_PLATFORM == 'java'
   DEFAULT_DATABASE_URL = 'jdbc:postgresql://tfb-database/hello_world?user=benchmarkdbuser&password=benchmarkdbpass'
   DEFAULT_DATABASE_URL = 'jdbc:postgresql://tfb-database/hello_world?user=benchmarkdbuser&password=benchmarkdbpass'