Sha256: 0171f4d12188304642b9af525883d50959dbd101aad84fb89786c3582c96b1df
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
module Restapi module Helpers def rdoc @rdoc ||= RDoc::Markup::ToHtml.new end def full_url(path) unless @prefix @prefix = "" if rails_prefix = ENV["RAILS_RELATIVE_URL_ROOT"] @prefix << rails_prefix end @prefix << Restapi.configuration.doc_base_url end path = path.sub(/^\//,"") "#{@prefix}/#{path}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restapi-0.0.2 | lib/restapi/helpers.rb |