Skip to content

Commit

Permalink
Add to_blob to avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
rhynix committed Jul 24, 2012
1 parent e698239 commit f1067d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cheers/avatar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ def avatar_file(file_path)
file_path
end

# Returns a binary version of the image
def to_blob(format)
compose_avatar

@avatar.format = format
@avatar.to_blob
end

private

def compose_avatar #:nodoc:
Expand Down

0 comments on commit f1067d5

Please sign in to comment.