From 072c817f37c805832b207b74df29775475364d5e Mon Sep 17 00:00:00 2001 From: Anton Argirov Date: Tue, 23 Jun 2015 13:49:00 +0600 Subject: [PATCH] #5: Add Mailer helper for sending custom emails from workflows (check Wiki) --- init.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.rb b/init.rb index 9054bc3..2e75ce9 100644 --- a/init.rb +++ b/init.rb @@ -17,6 +17,9 @@ Rails.application.config.to_prepare do unless Group.include?(RedmineCustomWorkflows::GroupPatch) Group.send(:include, RedmineCustomWorkflows::GroupPatch) end + unless Mailer.include?(RedmineCustomWorkflows::MailerPatch) + Mailer.send(:include, RedmineCustomWorkflows::MailerPatch) + end unless ActionView::Base.include?(RedmineCustomWorkflows::Helper) ActionView::Base.send(:include, RedmineCustomWorkflows::Helper) end