From eb2b86d795817ad342be7d2a19e9f5cc7390ab2d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Jul 2005 11:29:41 +0000 Subject: [PATCH] Added ActionController::Base.enable_upload_progress for people who want to play with the experimental upload progress git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1607 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 91ebc7e69d..c9b0973561 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -325,6 +325,12 @@ module ActionController #:nodoc: path_of_controller_root = path_of_calling_controller.sub(/#{controller_path.split("/")[0..-2]}$/, "") self.template_root = path_of_controller_root end + + # Temporary method for enabling upload progress until it's ready to leave experimental mode + def enable_upload_progress # :nodoc: + require 'action_controller/upload_progress' + include ActionController::UploadProgress + end end public