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