module ActionMailerCacheDelivery

Constants

VERSION

Public Class Methods

install() click to toggle source
# File lib/action_mailer_cache_delivery.rb, line 8
def install
  default_path = 'cache/action_mailer_cache_deliveries.cache'
  location = defined?(Rails) ? "#{Rails.root}/tmp/#{default_path}" : "#{Dir.tmpdir}/#{default_path}"
  ActionMailer::Base.add_delivery_method :cache, Mail::CacheDelivery, location: location
end