Sha256: e116855f1cb4641de64283948d32b38361c3094333bedc711424635a8d30fedd

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

module CurrentProcessor
  extend ::ActiveSupport::Concern

  included do
    case PROCESSOR
    when :image_sorcery
      require 'carrierwave-imagesorcery'
      include CarrierWave::ImageSorcery
    when :vips
      require 'carrierwave-vips'
      include CarrierWave::Vips
    when :mini_magick
      include CarrierWave::MiniMagick
    else
      include CarrierWave::RMagick
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
carrierwave-meta-0.0.7 spec/support/current_processor.rb
carrierwave-meta-0.0.5 spec/support/current_processor.rb