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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e82e009171632439c6f52ec8932a7e5f3f254c26148b41cbdc864e3d003bca9
|
4
|
+
data.tar.gz: 58fb7dee1b53c29b4c8f2b00ae29e9ce56537249937edaa48a8873c31e03b6d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) }
|
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.
|
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-
|
11
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|