diff --git a/.gitignore b/.gitignore index 715d0bc4bc97d0655dbf1a90261302ae980bdfb0..9480b47d15f96dbb2b52883d0dac7088699896f3 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 0000000000000000000000000000000000000000..b5feab80ae73a0debff03edb9ca3942a15b18908 --- /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 ce9cd510a3d7f5e38bc8837352bd6aae89406dbf..5e869bff1eb00c8ff6b3bb1791d65bc46c2f0dea 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -19,6 +19,7 @@ def setup "Rack::Runtime", "Rails::Rack::Logger", "ActionDispatch::ShowExceptions", + "Rack::Sendfile", "ActionDispatch::Callbacks", "ActionDispatch::Cookies", "ActionDispatch::Session::CookieStore",