lib/hanami/action/rack.rb in hanami-controller-0.8.1 vs lib/hanami/action/rack.rb in hanami-controller-1.0.0.beta1

- old
+ new

@@ -280,10 +280,10 @@ # # ... # send_file Pathname.new('path/to/file') # end # end def send_file(path) - result = File.new(path).call(@_env) + result = File.new(path, self.class.configuration.public_directory).call(@_env) headers.merge!(result[1]) halt result[0], result[2] end # Check if the current request is a HEAD