cached_mailer 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/cached_mailer.gemspec
CHANGED
@@ -15,12 +15,12 @@ class ActionMailer::Base
|
|
15
15
|
|
16
16
|
def deliver_with_cache!(mail = @mail)
|
17
17
|
mail.destinations.each do |destination|
|
18
|
-
mail_attributes = {:to => destination, :from => mail.from.first, :template => @template}
|
18
|
+
mail_attributes = {:to => destination, :from => mail.from.first, :template => @template, :mailer => self.class.to_s}
|
19
19
|
mail_attributes.merge!(:mail => mail.encoded) if cache_content
|
20
20
|
self.class.email_class.create mail_attributes
|
21
21
|
end
|
22
22
|
deliver_without_cache!
|
23
23
|
end
|
24
24
|
alias_method_chain :deliver!, :cache
|
25
|
-
|
25
|
+
|
26
26
|
end
|