Skip to content

Commit 370a227

Browse files
committed
Require Hirb to be enabled explicitly from .env
1 parent dc0274d commit 370a227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Application < Rails::Application
2828
config.assets.js_compressor = :uglifier
2929

3030
config.after_initialize do
31-
if %w{development test}.include?(Rails.env)
31+
if ENV['ENABLE_HIRB'] && %w{development test}.include?(Rails.env)
3232
Hirb.enable
3333
end
3434
end

0 commit comments

Comments
 (0)