mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: removes unused set_env (#12961)
This commit is contained in:
parent
17efce9023
commit
f3a4c12564
@ -348,20 +348,6 @@ def global_setting(name, value)
|
|||||||
end
|
end
|
||||||
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)
|
def set_cdn_url(cdn_url)
|
||||||
global_setting :cdn_url, cdn_url
|
global_setting :cdn_url, cdn_url
|
||||||
Rails.configuration.action_controller.asset_host = cdn_url
|
Rails.configuration.action_controller.asset_host = cdn_url
|
||||||
|
Loading…
Reference in New Issue
Block a user