effective_memberships 0.3.0 → 0.3.4
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 +4 -4
- data/app/datatables/admin/effective_categories_datatable.rb +3 -0
- data/app/models/concerns/effective_memberships_applicant.rb +7 -7
- data/app/models/effective/applicant_course.rb +1 -1
- data/app/models/effective/applicant_education.rb +1 -1
- data/app/models/effective/applicant_experience.rb +1 -1
- data/app/models/effective/applicant_reference.rb +1 -1
- data/app/views/admin/applicants/_status.html.haml +1 -1
- data/app/views/admin/categories/_form_applicant_steps.html.haml +1 -1
- data/app/views/effective/applicant_references/_applicant_reference.html.haml +1 -1
- data/app/views/effective/applicants/_declarations.html.haml +1 -1
- data/app/views/effective/applicants/_demographics_owner.html.haml +1 -1
- data/app/views/effective/applicants/_files.html.haml +1 -1
- data/app/views/effective/fee_payments/_declarations.html.haml +1 -1
- data/app/views/effective/fee_payments/_demographics_owner.html.haml +1 -1
- data/app/views/effective/fees/_fee.html.haml +1 -1
- data/app/views/effective/memberships/_dashboard.html.haml +10 -3
- data/app/views/effective/memberships/_membership.html.haml +1 -1
- data/lib/effective_memberships/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a3021cdfb182b004a5469726f7b54a004d6c14dd5ec12ce661804ef4ee93e0
|
4
|
+
data.tar.gz: fd1ecbfbd8cd2a4feec8771cabb8054be813dd9e4766742fee6e275ae8bbbbda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be49c3fbd12014e90a44c892ac05ac5bb28fd99099a648370cc87c8c8b1c98ac9c73171b9dcf7c5f78b6e4791bd9f8fd2cc0aaf1410902b5646a04b67e5c217
|
7
|
+
data.tar.gz: 2fd4a5fd54e32661250b688171bddf5d85803ad24b838c82518b1f0b2e40f5cf857f97cb80b5c06052b85296053ff87cd7210dd15f15b4212f023a3a17c820df
|
@@ -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
|
@@ -17,7 +17,7 @@ module Effective
|
|
17
17
|
timestamps
|
18
18
|
end
|
19
19
|
|
20
|
-
scope :deep, -> { includes(:applicant_course_area, :applicant_course_name
|
20
|
+
scope :deep, -> { includes(:applicant_course_area, :applicant_course_name) }
|
21
21
|
scope :sorted, -> { order(:title) }
|
22
22
|
|
23
23
|
before_validation(if: -> { applicant_course_name.present? }) do
|
@@ -1,14 +1,21 @@
|
|
1
|
-
%h2 Membership
|
2
1
|
- current_owner = current_user.effective_memberships_owner
|
3
2
|
- membership = current_owner.membership
|
4
3
|
|
4
|
+
%h2 Membership
|
5
|
+
|
5
6
|
- if membership.present?
|
6
7
|
- if membership.categories.length == 0
|
7
|
-
|
8
|
+
%p
|
9
|
+
You do not have an assigned membership category.
|
10
|
+
To fix this, click the Apply to Join button or the Pay Fees button and then complete the wizard.
|
11
|
+
You cannot access member-only pages until this has been completed.
|
12
|
+
Please contact us if you believe this is an error with your account.
|
13
|
+
|
8
14
|
- elsif membership.categories.length == 1
|
9
15
|
%p You are a #{membership.category} member.
|
16
|
+
|
10
17
|
- else
|
11
|
-
%p You are a member
|
18
|
+
%p You are a member with the following membership categories:
|
12
19
|
|
13
20
|
%ul
|
14
21
|
- membership.categories.each do |category|
|
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.3.
|
4
|
+
version: 0.3.4
|
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-01
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|