Permalink
Browse files

Add AbstractAdapter#inspect to fix encoding error

According to the discussion in #923, it seems like this should be the
only way to fix this encoding debug issue. I'm also going to coordinate
with aws-sdk to get this fix in the upstream.

Fixes #923, #301
  • Loading branch information...
1 parent 3ad7b01 commit a1690c51c5195d00114d02e6331a245023732589 @sikachu sikachu committed Jul 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/paperclip/io_adapters/abstract_adapter.rb
View
4 lib/paperclip/io_adapters/abstract_adapter.rb
@@ -13,6 +13,10 @@ def read(length = nil, buffer = nil)
@tempfile.read(length, buffer)
end
+ def inspect
+ "#{self.class}: #{self.original_filename}"
+ end
+
private
def destination

0 comments on commit a1690c5

Please sign in to comment.