pay 3.0.9 → 3.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 645844d5290d8984da36577e87334bf103f4fea1ee209eb90fcf320519508ac7
4
- data.tar.gz: 9f76933a2538977ff7c14b6b142c26e1a74614e2bc5ef28f105fddcd5e733062
3
+ metadata.gz: edebdc875241f0a8525f970b8fd93644ca0152ce823669de0a878f655c3c6696
4
+ data.tar.gz: a27d9b3cbbb313d0c8fdc796e4e9d2dc5e85c278761e476111415909597e883b
5
5
  SHA512:
6
- metadata.gz: a7bd8e33a5ffee95a6e74135a97bbe0ee12ee811c27d8603e3fde50b35ab3fe3f727d685af71bd07fde72e536417c6d6dfab560953eee02ee11f400c54a50d0c
7
- data.tar.gz: 6994d66c093c5670e56fc8ae43b3964b707401e00c165f26155180a751c4367566ac35dc6fc1f2ff8f6135e7f9247bf5d62dc7b8be9eaff5b854b47af3702acf
6
+ metadata.gz: 810759a42f2e49d64c4d5e98c8d41a40614fc993bd578621212701c86080fcc5fcecada3bb4ebc838877e81b07c1c23a52ce757a09ebadada8367eef296a7f3f
7
+ data.tar.gz: 56986f6e8a49477b60968f03dd0ccf426d9eb702a01a146954c3a99bf97f4d25556edacfb64eccd7728437b71c880fc34d00bef9cc59b9a13d3c993b9cee005d
@@ -10,7 +10,6 @@ module Pay
10
10
  scope :sorted, -> { order(created_at: :desc) }
11
11
  scope :with_active_customer, -> { joins(:customer).merge(Customer.active) }
12
12
  scope :with_deleted_customer, -> { joins(:customer).merge(Customer.deleted) }
13
- default_scope -> { sorted }
14
13
 
15
14
  # Validations
16
15
  validates :amount, presence: true
@@ -4,7 +4,7 @@ module Pay
4
4
 
5
5
  # Associations
6
6
  belongs_to :customer
7
- has_many :charges, class_name: "Pay::Charge", foreign_key: :pay_subscription_id
7
+ has_many :charges
8
8
 
9
9
  # Scopes
10
10
  scope :for_name, ->(name) { where(name: name) }
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "3.0.9"
2
+ VERSION = "3.0.10"
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: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes