lib/acidic_job/mixin.rb in acidic_job-1.0.0.beta.1 vs lib/acidic_job/mixin.rb in acidic_job-1.0.0.beta.2

- old
+ new

@@ -12,9 +12,15 @@ # Ensure our `perform` method always runs first to gather parameters # and run perform callbacks for Sidekiq workers other.prepend PerformWrapper + # Add `deliver_acidicly` to ActionMailer + ::ActionMailer::Parameterized::MessageDelivery.include(Extensions::ActionMailer) if defined?(::ActionMailer) + ::ActionMailer::MessageDelivery.include(Extensions::ActionMailer) if defined?(::ActionMailer) + # Add `deliver_acidicly` to Noticed + ::Noticed::Base.include(Extensions::Noticed) if defined?(::Noticed) + # By default, we unique job runs by the `job_id` other.instance_variable_set(:@acidic_identifier, :job_id) # However, you can customize this behavior on a per job class level other.define_singleton_method(:acidic_by_job_identifier) { @acidic_identifier = :job_id } # You could unique job runs by the arguments passed to the job (e.g. memoization)