Use a mixin for the path function to DRY it up

This commit is contained in:
Robin Ward
2015-03-09 15:24:16 -04:00
parent 31ca464c31
commit 3ad12d44f3
3 changed files with 9 additions and 8 deletions

5
lib/global_path.rb Normal file
View File

@ -0,0 +1,5 @@
module GlobalPath
def path(p)
"#{GlobalSetting.relative_url_root}#{p}"
end
end