Skip to content
This repository
Browse code

Fix syntax error on ruby 1.8.7

  • Loading branch information...
commit f7b76cd2c184caee9a503928d7f66d43a27f9a1a 1 parent 786a13f
Sergio Cambra authored July 20, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/paperclip/geometry.rb
2  lib/paperclip/geometry.rb
@@ -149,7 +149,7 @@ def cropping dst, ratio, scale
149 149
     # scale to the requested geometry and preserve the aspect ratio
150 150
     def scale_to(new_geometry)
151 151
       scale = [new_geometry.width.to_f / self.width.to_f , new_geometry.height.to_f / self.height.to_f].min
152  
-      Paperclip::Geometry.new (self.width * scale).round, (self.height * scale).round
  152
+      Paperclip::Geomery.new((self.width * scale).round, (self.height * scale).round)
153 153
     end
154 154
   end
155 155
 end

0 notes on commit f7b76cd

Please sign in to comment.
Something went wrong with that request. Please try again.