active_mailer 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/ChangeLog.md +3 -0
- data/Gemfile.lock +1 -1
- data/active_mailer.gemspec +1 -1
- data/app/models/active_mailer/base.rb +1 -1
- data/test/active_mailer_test.rb +2 -2
- metadata +1 -1
data/.gitignore
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile.lock
CHANGED
data/active_mailer.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.authors = ["Matt Gordon"]
|
8
8
|
s.email = 'support@expectedbehavior.com'
|
9
9
|
s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Rakefile", "Gemfile", "README.rdoc"]
|
10
|
-
s.version = "0.0.
|
10
|
+
s.version = "0.0.8"
|
11
11
|
s.homepage =
|
12
12
|
'https://github.com/expectedbehavior/active_mailer'
|
13
13
|
|
@@ -182,7 +182,7 @@ module ActiveMailer #:nodoc:
|
|
182
182
|
:to => options[:recipients],
|
183
183
|
:subject => options[:subject],
|
184
184
|
:from => options[:sender].email_address }
|
185
|
-
mail_options[:headers] = options[:headers]
|
185
|
+
mail_options[:headers] = options[:headers] if options[:headers].present?
|
186
186
|
mail(mail_options)
|
187
187
|
end
|
188
188
|
end
|
data/test/active_mailer_test.rb
CHANGED
@@ -35,8 +35,8 @@ class ActiveMailerTest < ActiveSupport::TestCase
|
|
35
35
|
email = InvitationEmail.new(:sender => "spammy@example.com",
|
36
36
|
:recipients => ["takesit@upemail.com", nil],
|
37
37
|
:subject => "YOU GUYS!")
|
38
|
-
email.headers =
|
38
|
+
email.headers = "SOMETHING: else"
|
39
39
|
assert { email.send! }
|
40
|
-
assert { email.mailer["headers"].to_s ==
|
40
|
+
assert { email.mailer["headers"].to_s == "SOMETHING: else" }
|
41
41
|
end
|
42
42
|
end
|