Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 6 lines (6 sloc) 0.192 kb
1 2 3 4 5 6
module GeometryForStyle
  def geometry_for_style(style=:original, method=:image)
    attachment = self.send(method)
    Paperclip::Geometry.parse(attachment.styles[style].geometry)
  end
end
Something went wrong with that request. Please try again.