Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Add AbstractAdapter#inspect to fix encoding error
Browse files Browse the repository at this point in the history
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
sikachu committed Jul 13, 2012
1 parent 3ad7b01 commit a1690c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/paperclip/io_adapters/abstract_adapter.rb
Expand Up @@ -13,6 +13,10 @@ def read(length = nil, buffer = nil)
@tempfile.read(length, buffer) @tempfile.read(length, buffer)
end end


def inspect
"#{self.class}: #{self.original_filename}"
end

private private


def destination def destination
Expand Down

0 comments on commit a1690c5

Please sign in to comment.