Sha256: 0b8660d581a1661525abef77fa69e1eef7f6ddfd213a85b36301d20614528c13
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..')) require 'boot' Bundler.require :default, ENV['RACK_ENV'] if defined?(Bundler) #unless $0 == 'irb' require 'sidekiq' # check if running inside Sidekiq worker process load_workers = defined?(Sidekiq::CLI) || defined?(Sidekiq::Testing) ? true : false puts "SidekiqSendMail - check if should load worker - #{load_workers}" if load_workers require 'mail' Dir[File.expand_path('../../app/**/*.rb', __FILE__)].each { |f| require f } end if defined?(ActionMailer) require File.expand_path('../../lib/mail_interceptor.rb', __FILE__) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_send_mail-0.1.0 | config/application.rb |