diff --git a/lib/tasks/templates.rake b/lib/tasks/templates.rake index 4023bea5..b81876f2 100644 --- a/lib/tasks/templates.rake +++ b/lib/tasks/templates.rake @@ -47,6 +47,7 @@ namespace :templates do a.file = File.open("#{Rails.root}/vendor/templates/intel/intel.jpg") a.save! t = Template.create(name: 'Efax', directory_index: 'index.php', description: 'User received a efax which requires them to open the PDF') + a = t.attachments.create(function: 'website') a.file = File.open("#{Rails.root}/vendor/templates/efax/index.php") a.save! a = t.attachments.create(function: 'email')