aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-02-23 17:42:14 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-02-23 17:42:26 -0800
commit47498a7f59d0196e9b8aa8e3569cbb4937477cef (patch)
treeda5c42ed1c51b87d19b0e2618ddbb6dd853b6cf0
parent24ab5665b2f12a589e96a4b742cc49c08bf0e9df (diff)
downloadrails-47498a7f59d0196e9b8aa8e3569cbb4937477cef.tar.gz
rails-47498a7f59d0196e9b8aa8e3569cbb4937477cef.tar.bz2
rails-47498a7f59d0196e9b8aa8e3569cbb4937477cef.zip
Woops, forgot to actually add active_support/core_ext/file/path.rb
-rw-r--r--.gitignore1
-rw-r--r--activesupport/lib/active_support/core_ext/file/path.rb5
-rw-r--r--railties/test/application/middleware_test.rb1
3 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 715d0bc4bc..9480b47d15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@ railties/tmp
bin
.bundle
pkg
+*.gem \ No newline at end of file
diff --git a/activesupport/lib/active_support/core_ext/file/path.rb b/activesupport/lib/active_support/core_ext/file/path.rb
new file mode 100644
index 0000000000..b5feab80ae
--- /dev/null
+++ b/activesupport/lib/active_support/core_ext/file/path.rb
@@ -0,0 +1,5 @@
+class File
+ unless File.allocate.respond_to?(:to_path)
+ alias to_path path
+ end
+end \ No newline at end of file
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb
index ce9cd510a3..5e869bff1e 100644
--- a/railties/test/application/middleware_test.rb
+++ b/railties/test/application/middleware_test.rb
@@ -19,6 +19,7 @@ module ApplicationTests
"Rack::Runtime",
"Rails::Rack::Logger",
"ActionDispatch::ShowExceptions",
+ "Rack::Sendfile",
"ActionDispatch::Callbacks",
"ActionDispatch::Cookies",
"ActionDispatch::Session::CookieStore",