更新「temp_file/app/controllers/admin/sites_controller.rb」
This commit is contained in:
parent
374f737449
commit
d67d357231
|
@ -4,12 +4,12 @@ class Admin::SitesController < OrbitAdminController
|
||||||
begin
|
begin
|
||||||
include BundlerHelper
|
include BundlerHelper
|
||||||
rescue
|
rescue
|
||||||
def bundler_with_clean_env
|
def bundler_with_clean_env(&block)
|
||||||
if block_given?
|
if block_given?
|
||||||
if Bundler.respond_to?(:with_unbundled_env)
|
if Bundler.respond_to?(:with_unbundled_env)
|
||||||
Bundler.with_unbundled_env(&Proc.new)
|
Bundler.with_unbundled_env(&block)
|
||||||
else
|
else
|
||||||
Bundler.with_clean_env(&Proc.new)
|
Bundler.with_clean_env(&block)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue