aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2011-12-21 22:28:40 +0300
committerVasiliy Ermolovich <younash@gmail.com>2011-12-25 22:22:22 +0300
commita7ba8e1fb325a20dc5115eeef278ce946d0450c7 (patch)
tree154a64c2c0251e4c60ddf2ff65b8c410e65ddd48 /actionpack/lib/action_controller/metal
parent748725e9ce081f6517c68d8f74d254e2079d0d79 (diff)
downloadrails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.tar.gz
rails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.tar.bz2
rails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.zip
remove File#to_path alias
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/data_streaming.rb3
-rw-r--r--actionpack/lib/action_controller/metal/streaming.rb3
2 files changed, 2 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/data_streaming.rb b/actionpack/lib/action_controller/metal/data_streaming.rb
index 0670a58d97..30ddf6c16e 100644
--- a/actionpack/lib/action_controller/metal/data_streaming.rb
+++ b/actionpack/lib/action_controller/metal/data_streaming.rb
@@ -1,4 +1,3 @@
-require 'active_support/core_ext/file/path'
require 'action_controller/metal/exceptions'
module ActionController #:nodoc:
@@ -115,7 +114,7 @@ module ActionController #:nodoc:
private
def send_file_headers!(options)
type_provided = options.has_key?(:type)
-
+
options.update(DEFAULT_SEND_FILE_OPTIONS.merge(options))
[:type, :disposition].each do |arg|
raise ArgumentError, ":#{arg} option required" if options[arg].nil?
diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb
index 5fe5334458..0e46402962 100644
--- a/actionpack/lib/action_controller/metal/streaming.rb
+++ b/actionpack/lib/action_controller/metal/streaming.rb
@@ -1,4 +1,3 @@
-require 'active_support/core_ext/file/path'
require 'rack/chunked'
module ActionController #:nodoc:
@@ -195,7 +194,7 @@ module ActionController #:nodoc:
# ==== Passenger
#
# To be described.
- #
+ #
module Streaming
extend ActiveSupport::Concern