Class: Tape::Adapteres::ActionMailer::Cache

Inherits:
Base
  • Object
show all
Defined in:
lib/tape/adapters/action_mailer/cache.rb

Overview

For ActionMailer with delivery_method = :cache

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
# File 'lib/tape/adapters/action_mailer/cache.rb', line 10

def all
  ActionMailer::Base.cached_deliveries
end

#lastObject



14
15
16
# File 'lib/tape/adapters/action_mailer/cache.rb', line 14

def last
  ActionMailer::Base.cached_deliveries.last
end

#resetObject



18
19
20
# File 'lib/tape/adapters/action_mailer/cache.rb', line 18

def reset
  ActionMailer::Base.clear_cache
end