cached_mailer 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/cached_mailer.gemspec +1 -1
- data/lib/action_mailer/cached_mailer.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -43,7 +43,7 @@ Or specify a custom model name
|
|
43
43
|
|
44
44
|
./script/generate cached_mailer Newsletter
|
45
45
|
|
46
|
-
|
46
|
+
Rake your database and you're done! All the emails you send with ActionMailer will automagically be cached to the database for later reference.
|
47
47
|
|
48
48
|
== Settings
|
49
49
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/cached_mailer.gemspec
CHANGED
@@ -13,7 +13,7 @@ class ActionMailer::Base
|
|
13
13
|
@@email_class_name.constantize
|
14
14
|
end
|
15
15
|
|
16
|
-
def deliver_with_cache!(mail)
|
16
|
+
def deliver_with_cache!(mail = @mail)
|
17
17
|
mail.destinations.each do |destination|
|
18
18
|
mail_attributes = {:to => destination, :from => mail.from.first, :template => @template}
|
19
19
|
mail_attributes.merge!(:mail => mail.encoded) if cache_content
|