aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-30 22:59:23 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-30 22:59:23 -0300
commit628e38d789176bf53822942598547dee21d5ce70 (patch)
tree7a678bb87a6a0a5b1745d4e42926bfd08b005488 /actionpack/lib/action_dispatch
parent19987b64af0d543a6292c3fd9b0b877f70eab306 (diff)
downloadrails-628e38d789176bf53822942598547dee21d5ce70.tar.gz
rails-628e38d789176bf53822942598547dee21d5ce70.tar.bz2
rails-628e38d789176bf53822942598547dee21d5ce70.zip
Since File instance doesn't respond to #open use a double to test the
behavior added at c53e5def08f7a289a92a8e5f79dcd7caa5c3a2fb
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/http/upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/upload.rb b/actionpack/lib/action_dispatch/http/upload.rb
index 94fa747a79..eb95f79e0b 100644
--- a/actionpack/lib/action_dispatch/http/upload.rb
+++ b/actionpack/lib/action_dispatch/http/upload.rb
@@ -19,7 +19,7 @@ module ActionDispatch
[:open, :path, :rewind, :size].each do |method|
class_eval "def #{method}; @tempfile.#{method}; end"
end
-
+
private
def encode_filename(filename)
# Encode the filename in the utf8 encoding, unless it is nil or we're in 1.8