Method: Awestruct::ContextHelper#fix_url
- Defined in:
- lib/awestruct/context_helper.rb
#fix_url(base_url, url) ⇒ Object
70 71 72 73 |
# File 'lib/awestruct/context_helper.rb', line 70 def fix_url(base_url, url) return url unless ( url =~ /^\// ) "#{base_url}#{url}" end |