Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Cambra committed Jul 20, 2012
1 parent f7b76cd commit c57255a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/geometry.rb
Expand Up @@ -149,7 +149,7 @@ def cropping dst, ratio, scale
# scale to the requested geometry and preserve the aspect ratio
def scale_to(new_geometry)
scale = [new_geometry.width.to_f / self.width.to_f , new_geometry.height.to_f / self.height.to_f].min
Paperclip::Geomery.new((self.width * scale).round, (self.height * scale).round)
Paperclip::Geometry.new((self.width * scale).round, (self.height * scale).round)
end
end
end

0 comments on commit c57255a

Please sign in to comment.