effective_memberships 0.9.0 → 0.9.1

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: 34a684e853c8b3b7d6e43291514cc6242c9b1fc480e8523c8c40a0f109774c6a
4
- data.tar.gz: 57ce4d9495e7464abd05de9302a69f9bf86ad5fd2e4742e2b978b2fbbe39e079
3
+ metadata.gz: 6e82e009171632439c6f52ec8932a7e5f3f254c26148b41cbdc864e3d003bca9
4
+ data.tar.gz: 58fb7dee1b53c29b4c8f2b00ae29e9ce56537249937edaa48a8873c31e03b6d0
5
5
  SHA512:
6
- metadata.gz: 1e1a659ec1fd40c302ebe4212a8c0cb41365fa13415288df965dc7daa3f6525b7237deafb86ca1dfe5ecca6a0f6605190286021227ef6fd2cc1dcea52d51bd03
7
- data.tar.gz: 959a2dce5b5f70566226ceef2bfec3f09dfc75182dd5faa02152c032e166d5ce1e1d569b601aa914ff5d1e9bc3534bcbaeb4e2ab9dc28a187b5198ef5bacd417
6
+ metadata.gz: d689ddb87455e6344f838d13c622e1a8312b7740754c79e18a6a06e56f7cb283f4a824a270357e17997cc1728aa30108eac774937f0c89881b06b0935349261b
7
+ data.tar.gz: 78064744e55a7fbb0a4e4285b1a29a469342461b0607f93877223fc456016d61ea614f4f40663b69dbf2f141cdb60cb59b3a2c9890c08a10c897ed54fdc5e68e
@@ -27,10 +27,10 @@ module EffectiveMembershipsOwner
27
27
  has_many :orders, -> { order(:id) }, inverse_of: :user, as: :user, class_name: 'Effective::Order', dependent: :nullify
28
28
  accepts_nested_attributes_for :orders, reject_if: :all_blank, allow_destroy: true
29
29
 
30
- has_one :membership, inverse_of: :owner, as: :owner, class_name: 'Effective::Membership'
30
+ has_one :membership, inverse_of: :owner, as: :owner, class_name: 'Effective::Membership', dependent: :destroy
31
31
  accepts_nested_attributes_for :membership
32
32
 
33
- has_many :membership_histories, -> { Effective::MembershipHistory.sorted }, inverse_of: :owner, as: :owner, class_name: 'Effective::MembershipHistory'
33
+ has_many :membership_histories, -> { Effective::MembershipHistory.sorted }, inverse_of: :owner, as: :owner, class_name: 'Effective::MembershipHistory', dependent: :delete_all
34
34
  accepts_nested_attributes_for :membership_histories
35
35
 
36
36
  scope :members, -> { joins(:membership) }
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-10 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails