Use crop_resized! instead of resize_to_fill!

The latter is unavailable in oooold versions
of RMagick which some old fogeys insist on
continuing to use (I'm looking at you Heroku!)
This commit is contained in:
Jonas Nicklas 2009-09-17 13:48:12 +02:00
parent 420ec38bef
commit 5be22ae387
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ module CarrierWave
#
def resize_to_fill(width, height)
manipulate! do |img|
img.resize_to_fill!(width, height)
img.crop_resized!(width, height)
img = yield(img) if block_given?
img
end