Merge pull request #14 from sgmap/customizable-emails

Customizable emails
This commit is contained in:
Xavier Julien 2017-02-13 15:20:04 +01:00 committed by GitHub
commit 3c6ae2d005
38 changed files with 722 additions and 143 deletions

View file

@ -0,0 +1,9 @@
class InitMailValidatedForAllProcedure < ActiveRecord::Migration[5.0]
def change
Procedure.all.each do |p|
unless p.mail_validated
p.mail_templates << MailValidated.create
end
end
end
end