Skip to content

Instantly share code, notes, and snippets.

@sergio-fry
Created May 25, 2010 16:57
Show Gist options
  • Save sergio-fry/413383 to your computer and use it in GitHub Desktop.
Save sergio-fry/413383 to your computer and use it in GitHub Desktop.
module Paperclip
class Attachment
def geometry(style = :original)
@geometry ||= {}
@geometry[style] ||= Paperclip::Geometry.from_file(path(style))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment