mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:35:44 +08:00
10 lines
153 B
Ruby
10 lines
153 B
Ruby
module GlobalPath
|
|
def path(p)
|
|
"#{GlobalSetting.relative_url_root}#{p}"
|
|
end
|
|
|
|
def cdn_path(p)
|
|
"#{GlobalSetting.cdn_url}#{path(p)}"
|
|
end
|
|
end
|