]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/streaming.rb
Merge remote-tracking branch 'openstreetmap/pull/1270'
[rails.git] / config / initializers / streaming.rb
index 3db2a55f9a1fa7cfeb1ec6d6f70fa6c1710f9953..0c27ba2e79e1f489cebbf2c4b9fbddc33b5b3328 100644 (file)
@@ -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)