diff options
Diffstat (limited to 'web/lib/utils.rb')
-rw-r--r-- | web/lib/utils.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/utils.rb b/web/lib/utils.rb index c281419..d9d1f51 100644 --- a/web/lib/utils.rb +++ b/web/lib/utils.rb @@ -175,3 +175,8 @@ def get!(path, &block) end end +# return the base url for this site +def base_url + request.scheme + '://' + request.host + ':' + request.port.to_s +end + |