Module: RedisCacheMailerDelivery::Deliveries

Defined in:
lib/redis_cache_mailer_delivery/deliveries.rb

Class Method Summary collapse

Class Method Details

.allArray

Returns an array of delivered mails.

Returns:

  • (Array)

    array of mails (each mail is an instance of Mail.)



13
14
15
16
17
# File 'lib/redis_cache_mailer_delivery/deliveries.rb', line 13

def all
  settings = Settings.new ActionMailer::Base.redis_cache_settings
  list = Redis::List.new settings.redis_key_name, :marshal => true
  list.values
end