DEV: removes unused set_env (#12961)

This commit is contained in:
Joffrey JAFFEUX 2021-05-06 13:04:18 +02:00 committed by GitHub
parent 17efce9023
commit f3a4c12564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,20 +348,6 @@ def global_setting(name, value)
end
end
def set_env(var, value)
old = ENV.fetch var, :missing
ENV[var] = value
before_next_spec do
if old == :missing
ENV.delete var
else
ENV[var] = old
end
end
end
def set_cdn_url(cdn_url)
global_setting :cdn_url, cdn_url
Rails.configuration.action_controller.asset_host = cdn_url