Sha256: 5decf05bab5258c731077c3de847be138d175be63d5780dcf3c8a2f8772b6f0e
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
require 'logger' require_relative 'backgrounded/handler/inprocess_handler' require_relative 'backgrounded/object_extensions' require_relative 'backgrounded/active_record_extension' require_relative 'backgrounded/railtie' if defined?(Rails) module Backgrounded class << self attr_accessor :logger, :handler def configure yield configuration end def configuration self end end end # default library configuration Backgrounded.configure do |config| # default handler to the basic in process handler config.handler = Backgrounded::Handler::InprocessHandler.new # configure default logger to standard out with info log level logger = Logger.new(STDOUT) logger.level = Logger::INFO config.logger = logger end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backgrounded-2.1.2 | lib/backgrounded.rb |