Sha256: 5e886fcb325df5c98732eb664cfbfb68609d2ea13fff3c108c62a1bd8e07039d
Contents?: true
Size: 428 Bytes
Versions: 20
Compression:
Stored size: 428 Bytes
Contents
module Grape module ServeFile # Response should respond to to_path method # for using Rack::SendFile middleware class SendfileResponse < Rack::Response def respond_to?(method_name, include_all = false) if method_name == :to_path @body.respond_to?(:to_path, include_all) else super end end def to_path @body.to_path end end end end
Version data entries
20 entries across 20 versions & 2 rubygems