lib/emaildirect/source.rb in emaildirect-1.2.1 vs lib/emaildirect/source.rb in emaildirect-1.3.0
- old
+ new
@@ -43,10 +43,10 @@
response = EmailDirect.delete uri_for, {}
Hashie::Mash.new(response)
end
def add_emails(email_addresses)
- options = { :EmailAddresses => email_addresses.to_a }
+ options = { :EmailAddresses => Array(email_addresses) }
response = EmailDirect.post uri_for('AddEmails'), :body => options.to_json
Hashie::Mash.new(response)
end
private