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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bc312d4be0f593086ccda4c567644f539f733dc019e1580f7b79c82a20343d1
|
4
|
+
data.tar.gz: 5607e8a5cc0223e5e5c80856b2ee7227d8da9d5799e34da85d3d6c5f6fb22018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|