effective_memberships 0.1.2 → 0.1.3

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: d6e16095d62eababb9b14b78f65c13b45b744e15c16f92b79724b8e138b4b38d
4
- data.tar.gz: e4a51731819350e85f49615a982614197fc05fcf3b4b5da4558a6a534eab1ea2
3
+ metadata.gz: 541315ace60a5bc7727f069d36afa0a6c0c520b2be2744f7f9485d1e4a327b02
4
+ data.tar.gz: 8f3fadb661ec2591b61df8ccb66e4df0291c16a07d3ab347a8fea44d329a87be
5
5
  SHA512:
6
- metadata.gz: c333cb75909efad3f4400b0fead9397b5f3f89d3d4df9dc920e9b5867ad58223fa0baeb3170db00b0d652bbf41d48405832b103e3fb84b872ed042634a20a0a3
7
- data.tar.gz: 859cea163d8380b4daf5e6dbc98f575a1b755fded7a27c3a227ddc36e1de61b1225304e091d44c9a4fa6096b1b464aeaf0f339013c57920ad5bd91e027575992
6
+ metadata.gz: a0d8040eca6bbe1e88eccd5a457ac735d61d151b891b6a94b21c3e4d3a2abfc29bc82af41fdd64e23435bbe5d4a12bbbf169d6d223855cd5c6eefd55e295ba18
7
+ data.tar.gz: a429ccfe8d26cbaa94dbd0170fd4a442e04f140c138caf1edb5300b33f9367a96422eb68c5fcf17e66d0ca6ded772355e6acc136fc91c8ef674a01a99a4d5455
@@ -30,7 +30,9 @@ module EffectiveMembershipsOwner
30
30
  accepts_nested_attributes_for :fees, reject_if: :all_blank, allow_destroy: true
31
31
 
32
32
  has_many :orders, -> { order(:id) }, inverse_of: :user, as: :user, class_name: 'Effective::Order', dependent: :nullify
33
- accepts_nested_attributes_for :orders, reject_if: :all_blank, allow_destroy: true
33
+ # Do not accepts nested attributes
34
+
35
+ #accepts_nested_attributes_for :orders, reject_if: :all_blank, allow_destroy: true
34
36
 
35
37
  has_one :membership, inverse_of: :owner, as: :owner, class_name: 'Effective::Membership'
36
38
  accepts_nested_attributes_for :membership
@@ -27,8 +27,8 @@ module Effective
27
27
 
28
28
  validates :owner, presence: true
29
29
 
30
- validates :categories, presence: true, unless: -> { removed? }
31
- validates :category_ids, presence: true, unless: -> { removed? }
30
+ # validates :categories, presence: true, unless: -> { removed? }
31
+ # validates :category_ids, presence: true, unless: -> { removed? }
32
32
 
33
33
  validates :start_on, presence: true
34
34
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect