From d0ce458d43f3a83ae282e42206424f4c9b5457be Mon Sep 17 00:00:00 2001 From: Guillaume Badi Date: Tue, 22 Mar 2016 11:41:14 +0100 Subject: [PATCH] only send gets the default sender --- lib/mailjet/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailjet/resource.rb b/lib/mailjet/resource.rb index f58fa96..2bdf8e8 100644 --- a/lib/mailjet/resource.rb +++ b/lib/mailjet/resource.rb @@ -84,7 +84,7 @@ def create(attributes = {}) # if action method, ammend url to appropriate id self.resource_path = create_action_resource_path(attributes[:id]) if self.action - if Mailjet.config.default_from + if Mailjet.config.default_from and self.resource_path == 'v3/send/' default_attributes = { :from_email => Mailjet.config.default_from } else default_attributes = {}