From d67d35723170dbd9f21b244ebf10b1652041aede Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 8 Apr 2023 04:25:57 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=8Ctemp=5Ffile/app/cont?= =?UTF-8?q?rollers/admin/sites=5Fcontroller.rb=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- temp_file/app/controllers/admin/sites_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/temp_file/app/controllers/admin/sites_controller.rb b/temp_file/app/controllers/admin/sites_controller.rb index 3e38e87..8079ec3 100644 --- a/temp_file/app/controllers/admin/sites_controller.rb +++ b/temp_file/app/controllers/admin/sites_controller.rb @@ -4,12 +4,12 @@ class Admin::SitesController < OrbitAdminController begin include BundlerHelper rescue - def bundler_with_clean_env + def bundler_with_clean_env(&block) if block_given? if Bundler.respond_to?(:with_unbundled_env) - Bundler.with_unbundled_env(&Proc.new) + Bundler.with_unbundled_env(&block) else - Bundler.with_clean_env(&Proc.new) + Bundler.with_clean_env(&block) end end end