Permalink
Browse files

Occasionally report successful sends.

  • Loading branch information...
1 parent 930bda6 commit d83e9b3fb51be0abff33d4385cb420fa73fc162a @evanfarrar evanfarrar committed Sep 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sms.rb
View
@@ -10,7 +10,7 @@ def self.text(message, options={})
'To' => options[:to],
'From' => options[:from] || ENV['TWILIO_PHONE'],
'Body' => message
- if res.code == 201
+ if res.code.to_i == 201
true
else
if options[:raise]

0 comments on commit d83e9b3

Please sign in to comment.