Sha256: 5d0f515a239e7addbc1d30f6a1fd2d82c3b91d7a0b9e442aac55305bb2e146e8

Contents?: true

Size: 246 Bytes

Versions: 3

Compression:

Stored size: 246 Bytes

Contents

require "rails"
require "sparkpost_rails/mailer"

module SparkpostRails
  class Railtie < ::Rails::Railtie
    config.before_configuration do
      ActionMailer::Base.add_delivery_method :sparkpost_rails, SparkpostRails::Mailer
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sparkpost_rails5-0.1.3 lib/sparkpost_rails/railtie.rb
sparkpost_rails5-0.1.1 lib/sparkpost_rails/railtie.rb
sparkpost_rails5-0.1.0 lib/sparkpost_rails/railtie.rb