effective_memberships 0.15.0 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/applicant_course.rb +1 -1
- data/app/models/effective/applicant_course_area.rb +1 -1
- data/app/models/effective/applicant_course_name.rb +1 -1
- data/app/models/effective/applicant_education.rb +1 -1
- data/app/models/effective/applicant_endorsement.rb +5 -2
- data/app/models/effective/applicant_equivalence.rb +1 -1
- data/app/models/effective/applicant_experience.rb +1 -1
- data/app/models/effective/applicant_reference.rb +1 -1
- data/app/models/effective/membership.rb +1 -1
- data/app/models/effective/membership_category.rb +1 -1
- data/app/models/effective/membership_history.rb +1 -1
- data/app/models/effective/membership_status.rb +1 -1
- data/app/models/effective/representative.rb +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: 80b3be5df02d20bffe856bbfead08ca00bbbe1275de73180222c4d5b68325905
|
4
|
+
data.tar.gz: e446910960afadbc36f2f427e9bfdd5e5e286a1f59681ea523f15cd30e9da5ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7fbe089ca906197c0fd7a6823b0100c60d0ac2b084ee9f6a77e5d0ee2e82de81be3ab2aaf356c58b9dfc220b2d6c26dc8e4c0157d7d1b7c83ac18f7f79e4dc
|
7
|
+
data.tar.gz: b1305d1884b8a6c6f9bd67bfa5dcba9aa223caf22e11e961a85ff4c24f3d285d56dab1279ec1627ed7f4d0b64ae82147cab390454980cc48499902e553b5180a
|
@@ -16,7 +16,6 @@ module Effective
|
|
16
16
|
belongs_to :applicant, polymorphic: true
|
17
17
|
belongs_to :endorser, polymorphic: true, optional: true
|
18
18
|
|
19
|
-
|
20
19
|
effective_resource do
|
21
20
|
# These fields are submitted by the applicant
|
22
21
|
# They should try to select an endorser from the dropdown
|
@@ -82,7 +81,11 @@ module Effective
|
|
82
81
|
end
|
83
82
|
|
84
83
|
def to_s
|
85
|
-
|
84
|
+
if (endorser.present? || name.present?)
|
85
|
+
"#{model_name.human} from #{endorser || name}"
|
86
|
+
else
|
87
|
+
model_name.human
|
88
|
+
end
|
86
89
|
end
|
87
90
|
|
88
91
|
def email
|
@@ -72,7 +72,7 @@ module Effective
|
|
72
72
|
after_commit(on: :create, if: -> { applicant.was_submitted? && !applicant.done? }, unless: -> { email_form_skip }) { notify! }
|
73
73
|
|
74
74
|
def to_s
|
75
|
-
name.
|
75
|
+
name.present? ? "#{model_name.human} from #{name}" : model_name.human
|
76
76
|
end
|
77
77
|
|
78
78
|
def notify!
|
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.15.
|
4
|
+
version: 0.15.2
|
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: 2023-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|