diff options
author | Jens Fahnenbruck <jigfox@me.com> | 2011-08-23 21:10:01 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-27 22:53:33 +0200 |
commit | 96b72efc001473061e69bda0c601d8bda64027f3 (patch) | |
tree | c0ebffd6fef2263b9444c8ad6c95c4c377922d9a /actionpack/lib | |
parent | e96d04a2e4e244ea5053cb4e8ab97db604d0c796 (diff) | |
download | rails-96b72efc001473061e69bda0c601d8bda64027f3.tar.gz rails-96b72efc001473061e69bda0c601d8bda64027f3.tar.bz2 rails-96b72efc001473061e69bda0c601d8bda64027f3.zip |
adds delegetion for eof? to AD::Http::UploadedFile
if you want to read the file you may need to ask if there is something
to read from
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/upload.rb | 2 |
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 c4a915d1ad..ce8c2729e9 100644 --- a/actionpack/lib/action_dispatch/http/upload.rb +++ b/actionpack/lib/action_dispatch/http/upload.rb @@ -17,7 +17,7 @@ module ActionDispatch end # Delegate these methods to the tempfile. - [:open, :path, :rewind, :size].each do |method| + [:open, :path, :rewind, :size, :eof?].each do |method| class_eval "def #{method}; @tempfile.#{method}; end" end |