Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix syntax error on ruby 1.8.7

  • Loading branch information...
commit f7b76cd2c184caee9a503928d7f66d43a27f9a1a 1 parent 786a13f
Sergio Cambra authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/geometry.rb
View
2  lib/paperclip/geometry.rb
@@ -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::Geometry.new (self.width * scale).round, (self.height * scale).round
+ Paperclip::Geomery.new((self.width * scale).round, (self.height * scale).round)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.