class ActionDispatch::Response

def send_file(path)

Send the file stored at +path+ as the response body.
def send_file(path)
  commit!
  @stream = FileBody.new(path)
end