Sha256: 22c28933b6f6bea67df83e921293ca71aa00b31501faf1fcbead56faca8e93a0

Contents?: true

Size: 129 Bytes

Versions: 1

Compression:

Stored size: 129 Bytes

Contents

module SendFile
  def send_file(path)
    file = Rack::File.new(nil)
    file.path = path

    halt(file.serving(env))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cuba-sendfile-0.0.2 lib/cuba/send_file.rb