Sha256: 92c092f21938085eef606524932309ab7eaea5b8ca4c62176f7c3f26e264510c

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

require "paubox_rails/version"
require 'action_mailer'
require 'paubox'

module PauboxRails
  extend self

  def add_base_delivery
    ActionMailer::Base.add_delivery_method :paubox, Mail::Paubox
  end
end

if defined?(Rails)
  require 'paubox_rails/railtie'
else
  PauboxRails.add_base_delivery
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paubox_rails-0.1.4 lib/paubox_rails.rb