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

Commit

Permalink
* add readbyte/readchar on file_adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
fjg committed Apr 22, 2012
1 parent 3831498 commit 91e6c61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/paperclip/io_adapters/file_adapter.rb
Expand Up @@ -39,6 +39,14 @@ def nil?
def read(length = nil, buffer = nil)
@tempfile.read(length, buffer)
end

def readbyte
@tempfile.readbyte
end

def readchar
@tempfile.readchar
end

# We don't use this directly, but aws/sdk does.
def rewind
Expand Down

0 comments on commit 91e6c61

Please sign in to comment.