Загрузка изображений без сохранения соотношения сторон в Carrierwave

class ImageUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick

  storage :file

  # Override the directory where uploaded files will be stored.
  # This is a sensible default for uploaders that are meant to be mounted:
  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
  end

  # все изображения будут приведены к размеру 300x175 без сохранения пропорций
  process resize_without_aspect_ratio: [300, 175]

  def resize_without_aspect_ratio(width, height)
    manipulate! do |img|
      img.resize "#{width}x#{height}!"
      img
    end
  end
end