effective_memberships 0.15.0 → 0.15.1
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: 496b494a70e47e75ca34b0b9103098b982900eb5405ca4f81d6521afc9a03394
|
4
|
+
data.tar.gz: b1b15ed6a27e4b436c7f3269d1a5f902b91d14c94a804d075c69233a1016171e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c620514d835854625467cfe91c104d8ea5a6666915cec8f85b7b031d8a1b9b27ae54525be78f8dcd82b1369e7b4ea0a164836e7077f5b4680bea2898a87eea91
|
7
|
+
data.tar.gz: f51ee6087bc44f78ddf275587dc194c3d36a0535e9cbe038f8389c23aed60529810b72b1467883accc5b99e9b9df2589dd61401b012e9667cfa70963950fa4a1
|
@@ -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 #{endorer || 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.1
|
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
|