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 CHANGED
@@ -43,7 +43,7 @@ Or specify a custom model name
43
43
 
44
44
  ./script/generate cached_mailer Newsletter
45
45
 
46
- Done! All the emails you send with ActionMailer will automagically be cached to the database for later reference.
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.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cached_mailer}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mhodgson"]
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cached_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mhodgson