effective_memberships 0.3.1 → 0.3.2

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: 259907d1e85043159bf1f3000ee1d6b9d856b422b8cc8e6164045c5a7513142a
4
- data.tar.gz: f0f0b98543ee1e1cbd20ea53749a9ca2d479798d7374ee992815af8d9b2800e2
3
+ metadata.gz: 0bc312d4be0f593086ccda4c567644f539f733dc019e1580f7b79c82a20343d1
4
+ data.tar.gz: 5607e8a5cc0223e5e5c80856b2ee7227d8da9d5799e34da85d3d6c5f6fb22018
5
5
  SHA512:
6
- metadata.gz: f4b7d38ee4af24942eed3d80c66cb62ba47850616b620cd24351ff9f860bcc3ef4ee3fa66e3d54a128790694c2c85798fa57282602b24914fc4df7810d8785dd
7
- data.tar.gz: 18111c8718b33ca1253ee82b706195cc5cccde005ca07a5f102c30c6588e1bbb6dde7a7387037ba888b4d516ec15e41e0845257ddaa1635fcd329aafb090491a
6
+ metadata.gz: c8fd4647fa682ceaf5db08536bc1f709f21a4312d42e979500850350f79ee235dd83e4d490417521b7e456f910ad418d0ae70988fd09197dd2e8b240393e612d
7
+ data.tar.gz: 5c864a7bc2a30b7a7cc0d63faddc185a914f295a61b67f58f92899ad1328278d3f9ddbecb115e4517e9b2f292322c9c8010db3b89992ecd6bb9d81cb8cf339c5
@@ -77,26 +77,26 @@ module EffectiveMembershipsApplicant
77
77
  belongs_to :category, polymorphic: true, optional: true
78
78
  belongs_to :from_category, polymorphic: true, optional: true
79
79
 
80
- has_many :applicant_reviews, -> { order(:id) }, as: :applicant, dependent: :destroy
80
+ has_many :applicant_reviews, -> { order(:id) }, as: :applicant, inverse_of: :applicant, dependent: :destroy
81
81
  accepts_nested_attributes_for :applicant_reviews, reject_if: :all_blank, allow_destroy: true
82
82
 
83
83
  # Effective Namespace
84
- has_many :applicant_courses, -> { order(:id) }, class_name: 'Effective::ApplicantCourse', as: :applicant, dependent: :destroy
84
+ has_many :applicant_courses, -> { order(:id) }, class_name: 'Effective::ApplicantCourse', as: :applicant, inverse_of: :applicant, dependent: :destroy
85
85
  accepts_nested_attributes_for :applicant_courses, reject_if: :all_blank, allow_destroy: true
86
86
 
87
- has_many :applicant_educations, -> { order(:id) }, class_name: 'Effective::ApplicantEducation', as: :applicant, dependent: :destroy
87
+ has_many :applicant_educations, -> { order(:id) }, class_name: 'Effective::ApplicantEducation', as: :applicant, inverse_of: :applicant, dependent: :destroy
88
88
  accepts_nested_attributes_for :applicant_educations, reject_if: :all_blank, allow_destroy: true
89
89
 
90
- has_many :applicant_experiences, -> { order(:id) }, class_name: 'Effective::ApplicantExperience', as: :applicant, dependent: :destroy
90
+ has_many :applicant_experiences, -> { order(:id) }, class_name: 'Effective::ApplicantExperience', as: :applicant, inverse_of: :applicant, dependent: :destroy
91
91
  accepts_nested_attributes_for :applicant_experiences, reject_if: :all_blank, allow_destroy: true
92
92
 
93
- has_many :applicant_references, -> { order(:id) }, class_name: 'Effective::ApplicantReference', as: :applicant, dependent: :destroy
93
+ has_many :applicant_references, -> { order(:id) }, class_name: 'Effective::ApplicantReference', as: :applicant, inverse_of: :applicant, dependent: :destroy
94
94
  accepts_nested_attributes_for :applicant_references, reject_if: :all_blank, allow_destroy: true
95
95
 
96
- has_many :fees, -> { order(:id) }, as: :parent, class_name: 'Effective::Fee', dependent: :nullify
96
+ has_many :fees, -> { order(:id) }, as: :parent, inverse_of: :parent, class_name: 'Effective::Fee', dependent: :nullify
97
97
  accepts_nested_attributes_for :fees, reject_if: :all_blank, allow_destroy: true
98
98
 
99
- has_many :orders, -> { order(:id) }, as: :parent, class_name: 'Effective::Order', dependent: :nullify
99
+ has_many :orders, -> { order(:id) }, as: :parent, inverse_of: :parent, class_name: 'Effective::Order', dependent: :nullify
100
100
  accepts_nested_attributes_for :orders
101
101
 
102
102
  effective_resource do
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect