Sha256: 27a5f508336293bc3cff0f1380fc62bc452c2eefedaa27e85a8b367c2fceb524
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module CarrierWave module Backgrounder Logger = Logger.new(STDOUT) autoload :Delay, 'backgrounder/delay' autoload :DelayStorage, 'backgrounder/delay' 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 initializer "carrierwave_backgrounder.data_mapper", :before =>"data_mapper.add_to_prepare" do require 'backgrounder/orm/data_mapper' if defined?(DataMapper) end initializer "carrierwave_backgrounder.mongoid" do require 'backgrounder/orm/mongoid' if defined?(Mongoid) 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.7 | lib/carrierwave_backgrounder.rb |