X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..dae3dcf87edcfc0648cd0b93b069b0eee67d3ab7:/config/initializers/streaming.rb?ds=sidebyside diff --git a/config/initializers/streaming.rb b/config/initializers/streaming.rb index 3db2a55f9..0c27ba2e7 100644 --- a/config/initializers/streaming.rb +++ b/config/initializers/streaming.rb @@ -1,7 +1,7 @@ # Hack ActionController::DataStreaming to allow streaming from a file handle module ActionController module DataStreaming - alias_method :old_send_file, :send_file + alias old_send_file send_file def send_file(file, options = {}) if file.is_a?(File) || file.is_a?(Tempfile)