Skip to content

Instantly share code, notes, and snippets.

@trek
Created March 21, 2010 16:07
Show Gist options
  • Save trek/339380 to your computer and use it in GitHub Desktop.
Save trek/339380 to your computer and use it in GitHub Desktop.
def avatar_geometry(style = :original)
@geometry ||= {}
@geometry[style] ||= Paperclip::Geometry.from_file(avatar.to_file(style))
end
@borisrorsvort
Copy link

Thank you so much, you just made my day :)

@trek
Copy link
Author

trek commented Jan 16, 2011

Whatcha working on?

@borisrorsvort
Copy link

avatar cropping on heroku, right it doesn't give errors but still not cropping ^^ i'm still searching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment