aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-04 19:28:40 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-04 19:28:40 -0700
commit12173396163616e077f761e190c13beb43d536bd (patch)
tree3aa5f2bf6f2b5e967d02c3eb6eefde77b59d1a68 /actionpack/lib/action_dispatch/http
parent3370ad0b1e883c9ec24c771f6c52b296a71eff40 (diff)
downloadrails-12173396163616e077f761e190c13beb43d536bd.tar.gz
rails-12173396163616e077f761e190c13beb43d536bd.tar.bz2
rails-12173396163616e077f761e190c13beb43d536bd.zip
only forwarding enough methods to work. People should grab the delegate tempfile if they really need to do hard work
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r--actionpack/lib/action_dispatch/http/upload.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/http/upload.rb b/actionpack/lib/action_dispatch/http/upload.rb
index 53f8039121..84e58d7d6a 100644
--- a/actionpack/lib/action_dispatch/http/upload.rb
+++ b/actionpack/lib/action_dispatch/http/upload.rb
@@ -13,13 +13,16 @@ module ActionDispatch
raise(ArgumentError, ':tempfile is required') unless @tempfile
end
- def respond_to?(name)
- super || @tempfile.respond_to?(name)
+ def read(*args)
+ @tempfile.read(*args)
end
- def method_missing(name, *args, &block)
- return super unless respond_to?(name)
- @tempfile.send(name, *args, &block)
+ def rewind
+ @tempfile.rewind
+ end
+
+ def size
+ @tempfile.size
end
end