Sha256: 552a5e9260b79c5732bd31345e0a2974ce5f6be7c0b7dede95554269f857e26b

Contents?: true

Size: 676 Bytes

Versions: 1

Compression:

Stored size: 676 Bytes

Contents

module CarrierWave
  module Backgrounder
    autoload :DelayStorage, 'backgrounder/delay_storage'

    module ORM
      autoload :Base, 'backgrounder/orm/base'
    end
  end
end

if defined?(Rails)
  module CarrierWave
    module Backgrounder
      class Railtie < Rails::Railtie
        initializer "carrierwave_backgrounder.active_record" do
          ActiveSupport.on_load :active_record do
            require 'backgrounder/orm/activerecord'
          end
        end
      end
    end
  end
end

if defined?(GirlFriday)
  require 'girl_friday'

  CARRIERWAVE_QUEUE = GirlFriday::WorkQueue.new(:carrierwave) do |msg|
    worker = msg[:worker]
    worker.perform
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.0.6 lib/carrierwave_backgrounder.rb