Permalink
Browse files

change response.status to response.code

  • Loading branch information...
clarkdave committed Mar 6, 2013
1 parent b56c74d commit d45d595a14e7d6c6a533ee820e24e2bbca792ed1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/loyaltylion/client.rb
@@ -31,7 +31,7 @@ def track(name, customer_id, customer_email, ref_code, properties = {})
}
response = post('/events', params)
return {
- :success => response.status == 201
+ :success => response.code == 201
}
end

0 comments on commit d45d595

Please sign in to comment.