Skip to content

Instantly share code, notes, and snippets.

@marcamillion
Created April 7, 2011 09:15
Show Gist options
  • Save marcamillion/907397 to your computer and use it in GitHub Desktop.
Save marcamillion/907397 to your computer and use it in GitHub Desktop.
def total_used
self.each do |upload|
total_size = upload.image_file_size + total_size
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment