Permalink
Browse files

ActionController::DataStreaming::FileBody doesn't respond to #close.

  • Loading branch information...
1 parent a6bdae1 commit d4433a35215c5e32d5cb91885c4084f849988887 @rafaelfranca rafaelfranca committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/response.rb
@@ -212,7 +212,7 @@ def location=(url)
end
def close
- stream.close
+ stream.close if stream.respond_to?(:close)
end
def to_a

0 comments on commit d4433a3

Please sign in to comment.