Skip to content

Commit

Permalink
Occasionally report successful sends.
Browse files Browse the repository at this point in the history
  • Loading branch information
evanfarrar committed Sep 29, 2010
1 parent 930bda6 commit d83e9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sms.rb
Expand Up @@ -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]
Expand Down

0 comments on commit d83e9b3

Please sign in to comment.