Sha256: eec36c38a1c88bd7441950ad417c8c3cf88f811089113e9b9f3690501e00b609
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
# frozen_string_literal: true require "rails/railtie" module AcidicJob class Railtie < ::Rails::Railtie initializer "acidic_job.action_mailer_extension" do ::ActiveSupport.on_load(:action_mailer) do # Add `deliver_acidicly` to ActionMailer ::ActionMailer::Parameterized::MessageDelivery.include(Extensions::ActionMailer) ::ActionMailer::MessageDelivery.include(Extensions::ActionMailer) end end initializer "acidic_job.active_job_serializers" do ::ActiveSupport.on_load(:active_job) do ::ActiveJob::Serializers.add_serializers( Serializers::ExceptionSerializer, Serializers::NewRecordSerializer, Serializers::FinishedPointSerializer, Serializers::JobSerializer, Serializers::RangeSerializer, Serializers::RecoveryPointSerializer, Serializers::WorkerSerializer, Serializers::ActiveKiqSerializer ) end end # :nocov: generators do require "generators/acidic_job/install_generator" end # :nocov: # This hook happens after all initializers are run, just before returning config.after_initialize do if defined?(::Noticed) # Add `deliver_acidicly` to Noticed ::Noticed::Base.include(Extensions::Noticed) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acidic_job-0.9.0 | lib/acidic_job/railtie.rb |
acidic_job-0.8.8 | lib/acidic_job/railtie.rb |