Skip to content

Commit

Permalink
remove File#to_path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Dec 25, 2011
1 parent 748725e commit a7ba8e1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 15 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_controller/metal/data_streaming.rb
@@ -1,4 +1,3 @@
require 'active_support/core_ext/file/path'
require 'action_controller/metal/exceptions' require 'action_controller/metal/exceptions'


module ActionController #:nodoc: module ActionController #:nodoc:
Expand Down Expand Up @@ -115,7 +114,7 @@ def send_data(data, options = {}) #:doc:
private private
def send_file_headers!(options) def send_file_headers!(options)
type_provided = options.has_key?(:type) type_provided = options.has_key?(:type)

options.update(DEFAULT_SEND_FILE_OPTIONS.merge(options)) options.update(DEFAULT_SEND_FILE_OPTIONS.merge(options))
[:type, :disposition].each do |arg| [:type, :disposition].each do |arg|
raise ArgumentError, ":#{arg} option required" if options[arg].nil? raise ArgumentError, ":#{arg} option required" if options[arg].nil?
Expand Down
3 changes: 1 addition & 2 deletions actionpack/lib/action_controller/metal/streaming.rb
@@ -1,4 +1,3 @@
require 'active_support/core_ext/file/path'
require 'rack/chunked' require 'rack/chunked'


module ActionController #:nodoc: module ActionController #:nodoc:
Expand Down Expand Up @@ -195,7 +194,7 @@ module ActionController #:nodoc:
# ==== Passenger # ==== Passenger
# #
# To be described. # To be described.
# #
module Streaming module Streaming
extend ActiveSupport::Concern extend ActiveSupport::Concern


Expand Down
1 change: 0 additions & 1 deletion activesupport/lib/active_support/core_ext/file.rb
@@ -1,2 +1 @@
require 'active_support/core_ext/file/atomic' require 'active_support/core_ext/file/atomic'
require 'active_support/core_ext/file/path'
5 changes: 0 additions & 5 deletions activesupport/lib/active_support/core_ext/file/path.rb

This file was deleted.

1 change: 0 additions & 1 deletion activesupport/lib/active_support/ruby/shim.rb
Expand Up @@ -16,4 +16,3 @@
require 'active_support/core_ext/string/encoding' require 'active_support/core_ext/string/encoding'
require 'active_support/core_ext/rexml' require 'active_support/core_ext/rexml'
require 'active_support/core_ext/time/conversions' require 'active_support/core_ext/time/conversions'
require 'active_support/core_ext/file/path'
4 changes: 0 additions & 4 deletions activesupport/test/core_ext/file_test.rb
Expand Up @@ -57,10 +57,6 @@ def test_atomic_write_preserves_default_file_permissions
File.unlink(file_name) rescue nil File.unlink(file_name) rescue nil
end end


def test_responds_to_to_path
assert_equal __FILE__, File.open(__FILE__, "r").to_path
end

private private
def file_name def file_name
"atomic.file" "atomic.file"
Expand Down

0 comments on commit a7ba8e1

Please sign in to comment.