lib/emaildirect/publication.rb in emaildirect-1.2.1 vs lib/emaildirect/publication.rb in emaildirect-1.3.0
- old
+ new
@@ -48,16 +48,16 @@
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 = post 'AddEmails', :body => options.to_json
Hashie::Mash.new(response)
end
def remove_emails(email_addresses)
- options = { :EmailAddresses => email_addresses.to_a }
+ options = { :EmailAddresses => Array(email_addresses) }
response = post 'RemoveEmails', :body => options.to_json
Hashie::Mash.new(response)
end
private