Skip to content

Commit

Permalink
you can pass optional filename to write.
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Dec 29, 2008
1 parent 52ca9a7 commit 1101fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/thumbo/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def create
self
end

def write
storage.write(self.filename, to_blob)
def write filename = nil
storage.write(filename || self.filename, to_blob)
end

# delegate all
Expand Down

0 comments on commit 1101fd7

Please sign in to comment.