Sha256: a03a4b2e7d29a6b43cd3388e6b71a9f24a003b74ce66bb4c8363cfb077f8f65a

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

module MandrillAPIDeliveryMethod
  class Railtie < Rails::Railtie
    initializer "mandrill_api_delivery_method.add_delivery_method" do
      ActiveSupport.on_load :action_mailer do
        ActionMailer::Base.add_delivery_method :mandrill_api, MandrillAPIDeliveryMethod::DeliveryMethod, ENV["MANDRILL_API_KEY"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mandrill-api-delivery-method-0.2 lib/mandrill_api_delivery_method/railtie.rb
mandrill-api-delivery-method-0.1 lib/mandrill_api_delivery_method/railtie.rb