stripe_local 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/stripe_local/card.rb +1 -1
- data/app/models/stripe_local/coupon.rb +2 -0
- data/lib/stripe_local/version.rb +1 -1
- data/lib/stripe_local.rb +4 -0
- data/spec/dummy/log/test.log +988 -0
- data/spec/models/stripe_local/customer_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ddf5da1efbd7a25f9c061e1dc47923411cd7c4
|
4
|
+
data.tar.gz: a641840f2f76bde8e9469d2f2603515d342aac56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e107c6834e23d3834532c0aaa5d3e70eaef925b7ddc2148919d635f0dccca08d16415b0a94a69b28f0895ec77eeb2b01637c3dd7ace4a493fbf87967a2ecc641
|
7
|
+
data.tar.gz: 6363e679a8503ebdfa65adf86448bbfc6f0d9a8096b623d3763f8961dcbd75117aab26e96d1250527ab559782cd41a881016570a6a9721e83ff018493843757c
|
data/lib/stripe_local/version.rb
CHANGED
data/lib/stripe_local.rb
CHANGED
@@ -50,6 +50,10 @@ module StripeLocal
|
|
50
50
|
StripeLocal::Customer.create( {model_id: self.id}.merge customer.to_hash )
|
51
51
|
end
|
52
52
|
|
53
|
+
def customer
|
54
|
+
@customer ||= StripeLocal::Customer.find_by( model_id: id )
|
55
|
+
end
|
56
|
+
|
53
57
|
def method_missing method, *args, &block
|
54
58
|
if self.customer.present? && self.customer.respond_to?( method )
|
55
59
|
self.customer.send method, *args, &block
|