config/application.rb in sidekiq_send_mail-0.1.0 vs config/application.rb in sidekiq_send_mail-0.1.1

- old
+ new

@@ -2,19 +2,6 @@ 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 +require 'sidekiq' \ No newline at end of file