Sha256: 73530b8b8c6a671d093d1c5f0c104c3c7bc5bdc772963e9924689ce16ed152cd
Contents?: true
Size: 226 Bytes
Versions: 1
Compression:
Stored size: 226 Bytes
Contents
class Cuba module SendFile def send_file(path, headers = {}) file = Rack::File.new(nil, headers) file.path = path result = file.serving(env) halt([result[0], result[1], file]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuba-sendfile-0.0.1 | lib/cuba/send_file.rb |