#5: Add Mailer helper for sending custom emails from workflows (check Wiki)

This commit is contained in:
Anton Argirov 2015-06-23 13:49:00 +06:00
parent 209329b319
commit 072c817f37

View File

@ -17,6 +17,9 @@ Rails.application.config.to_prepare do
unless Group.include?(RedmineCustomWorkflows::GroupPatch) unless Group.include?(RedmineCustomWorkflows::GroupPatch)
Group.send(:include, RedmineCustomWorkflows::GroupPatch) Group.send(:include, RedmineCustomWorkflows::GroupPatch)
end end
unless Mailer.include?(RedmineCustomWorkflows::MailerPatch)
Mailer.send(:include, RedmineCustomWorkflows::MailerPatch)
end
unless ActionView::Base.include?(RedmineCustomWorkflows::Helper) unless ActionView::Base.include?(RedmineCustomWorkflows::Helper)
ActionView::Base.send(:include, RedmineCustomWorkflows::Helper) ActionView::Base.send(:include, RedmineCustomWorkflows::Helper)
end end