mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:31:02 +08:00
Use a mixin for the path
function to DRY it up
This commit is contained in:
5
lib/global_path.rb
Normal file
5
lib/global_path.rb
Normal file
@ -0,0 +1,5 @@
|
||||
module GlobalPath
|
||||
def path(p)
|
||||
"#{GlobalSetting.relative_url_root}#{p}"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user