pay 10.1.5 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 740b4dafabcbd3a2fdffa9cf0e34ca0f22e4b6c4f74da849d3b2087267439fa1
4
- data.tar.gz: 6f59c38d8a5302a0793f22d558795136a1bac2d7d453e6076502a95ff7cf5512
3
+ metadata.gz: bbc13750a45c160a2cf53afc173735a5e846d3401955b3c05b080b61936b3173
4
+ data.tar.gz: 315acc27967b4dc0063981950dbb25aade62c8e29447714d410db48066acbf83
5
5
  SHA512:
6
- metadata.gz: 5a8190510febace01505e5aab44f1cb3747254ebf8fd41b7450ed33a434941c601bea6470b37d7f50d82ecda529696d5ba5cb7a94f651001130921d4d32c7d93
7
- data.tar.gz: 3c9db926c7b0520ff8e24cc5a8ec106e2b478a11e3fb8ea435c48d25758af196727b720cdab564c30bc1a543ce4df6310e4280db54e79cae3f4745be1549c716
6
+ metadata.gz: 6730e4367a8c0de82aa4f7daddb87c8c4184fe3f87830b5dff9fb13480f2583c002d7ef0c65c466a528596d3c60a373c69112a396c01a8903103c640417ba304
7
+ data.tar.gz: 8bb32b72e87510fa62be51140271a163424d7bfc12c046b1faa128ff155fa46e03f43018f79e205283c07d56674083cb0de1b278c10c0fd61d65569f468fcdd7
@@ -13,8 +13,8 @@ module Pay
13
13
  cattr_accessor :pay_braintree_customer_attributes
14
14
 
15
15
  has_many :pay_customers, class_name: "Pay::Customer", as: :owner, inverse_of: :owner
16
- has_many :charges, through: :pay_customers, class_name: "Pay::Charge"
17
- has_many :subscriptions, through: :pay_customers, class_name: "Pay::Subscription"
16
+ has_many :pay_charges, through: :pay_customers, class_name: "Pay::Charge", source: :charges
17
+ has_many :pay_subscriptions, through: :pay_customers, class_name: "Pay::Subscription", source: :subscriptions
18
18
  has_one :payment_processor, -> { where(default: true, deleted_at: nil) }, class_name: "Pay::Customer", as: :owner, inverse_of: :owner
19
19
 
20
20
  after_commit :cancel_active_pay_subscriptions!, on: [:destroy]
@@ -68,7 +68,7 @@ module Pay
68
68
  end
69
69
 
70
70
  def cancel_active_pay_subscriptions!
71
- subscriptions.active.each(&:cancel_now!)
71
+ pay_subscriptions.active.each(&:cancel_now!)
72
72
  end
73
73
  end
74
74
 
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "10.1.5"
2
+ VERSION = "11.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.5
4
+ version: 11.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes