class Grape::Util::SendfileResponse

Response should respond to #to_path method for using Rack::SendFile middleware

Public Instance Methods

respond_to?(method_name, include_all = false) click to toggle source
Calls superclass method
# File lib/grape/util/sendfile_response.rb, line 6
def respond_to?(method_name, include_all = false)
  if method_name == :to_path
    @body.respond_to?(:to_path, include_all)
  else
    super
  end
end
to_path() click to toggle source
# File lib/grape/util/sendfile_response.rb, line 14
def to_path
  @body.to_path
end