lib/nelumba-mongodb/avatar.rb
def read(size = nil)
      return nil if self.sizes.empty?

      size = self.sizes.first unless size
      return nil unless self.sizes.include? size

      Avatar.storage_read "avatar_#{self.id}_#{size[0]}x#{size[1]}"
    end
# Retrieve the avatar image as a byte string.
Retrieve the avatar image as a byte string.
Retrieve the avatar image as a byte string .
def read(size = nil)
      return nil if self.sizes.empty?
      size = self.sizes.first unless size
      return nil unless self.sizes.include? size
      Avatar.storage_read "avatar_#{self.id}_#{size[0]}x#{size[1]}"
    end
def read ( size = nil ) return nil if self . sizes . empty? size = self . sizes . first unless size return nil unless self . sizes . include? size Avatar . storage_read "avatar_#{self.id}_#{size[0]}x#{size[1]}" end
Retrieve the avatar image as a byte string.
Retrieve the avatar image as a byte string .
size