lib/footrest/request.rb in footrest-0.1.3 vs lib/footrest/request.rb in footrest-0.2.0

- old
+ new

@@ -1,19 +1,9 @@ module Footrest module Request - def config - raise "Config should be overridden" - end - - def join(*parts) - joined = parts.map{ |p| p.gsub(%r{^/|/$}, '') }.join('/') - joined = '/' + joined if parts.first[0] == '/' - joined - end - def fullpath(path) - config[:prefix] ? join(config[:prefix], path) : path + raise "fullpath should be overridden" end def delete(path, options={}) request_with_params_in_url(:delete, path, options) end \ No newline at end of file