From c44d0eba6717f2edf706a70b3c0eded21d946773 Mon Sep 17 00:00:00 2001 From: zeknox Date: Mon, 27 Jan 2014 22:42:01 -0600 Subject: [PATCH] fixed issue where intel image attachment would get assigned the efax index.php file --- lib/tasks/templates.rake | 1 + 1 file changed, 1 insertion(+) 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')