capistrano_mailer 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/capistrano_mailer.gemspec +1 -1
- data/lib/cap_mailer.rb +4 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/capistrano_mailer.gemspec
CHANGED
data/lib/cap_mailer.rb
CHANGED
@@ -89,7 +89,10 @@ class CapMailer < ActionMailer::Base
|
|
89
89
|
private
|
90
90
|
|
91
91
|
def subject_line
|
92
|
-
|
92
|
+
#The subject prepend and append are useful for people to setup filters in mail clients.
|
93
|
+
user = config[:user] ? " by #{config[:user]}" : ""
|
94
|
+
middle = config[:subject] ? config[:subject] : "[#{config[:rails_env].upcase}][#{repo_end}] #{inferred_command}#{user}"
|
95
|
+
"#{config[:subject_prepend]}#{middle}#{config[:subject_append]}"
|
93
96
|
end
|
94
97
|
|
95
98
|
def body_data_hash
|