Module: ActionMailerCacheDelivery
- Defined in:
- lib/action_mailer_cache_delivery.rb,
lib/action_mailer_cache_delivery/railtie.rb,
lib/action_mailer_cache_delivery/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- VERSION =
'0.3.4'
Class Method Summary collapse
Class Method Details
.install ⇒ Object
9 10 11 12 13 |
# File 'lib/action_mailer_cache_delivery.rb', line 9 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 |