We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9023f39 commit ce4b533Copy full SHA for ce4b533
1 file changed
lib/mail_view.rb
@@ -100,10 +100,12 @@ def not_found(pass = false)
100
def build_mail(name)
101
mail = nil
102
ActiveRecord::Base.transaction do
103
+
104
mail = send(name)
105
+ Mail.inform_interceptors(mail) if defined? Mail
106
107
raise ActiveRecord::Rollback
108
end
- Mail.inform_interceptors(mail) if defined? Mail
109
mail
110
111
0 commit comments