redline 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/redline/customer.rb +4 -1
- data/redline.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/redline/customer.rb
CHANGED
@@ -29,7 +29,10 @@ module RedLine
|
|
29
29
|
Braintree::Customer.update!(customer_id, braintree_customer_attributes) && flush_cache(:customer) if customer_id
|
30
30
|
end
|
31
31
|
def delete_customer
|
32
|
-
|
32
|
+
if customer_id
|
33
|
+
Braintree::Customer.delete(customer_id)
|
34
|
+
self.customer_id = nil
|
35
|
+
end
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
data/redline.gemspec
CHANGED