Commit f7b76cd2 by Sergio Cambra

Fix syntax error on ruby 1.8.7

parent 786a13f0
......@@ -149,7 +149,7 @@ module Paperclip
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment