diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-21 22:28:40 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-25 22:22:22 +0300 |
commit | a7ba8e1fb325a20dc5115eeef278ce946d0450c7 (patch) | |
tree | 154a64c2c0251e4c60ddf2ff65b8c410e65ddd48 /actionpack/lib/action_controller | |
parent | 748725e9ce081f6517c68d8f74d254e2079d0d79 (diff) | |
download | rails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.tar.gz rails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.tar.bz2 rails-a7ba8e1fb325a20dc5115eeef278ce946d0450c7.zip |
remove File#to_path alias
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/data_streaming.rb | 3 | ||||
-rw-r--r-- | actionpack/lib/action_controller/metal/streaming.rb | 3 |
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 |