effective_memberships 0.17.9 → 0.17.11

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: 7a7ab7d95194d5d7c49af9f4d8297b4a9f927f9d4a2d97ea2f18ead660488685
4
- data.tar.gz: 7412d96bc6f4b1c7329a3fa2b4998e0045d921f1deec09886f024f42b868afc7
3
+ metadata.gz: 0e90584a4dd7e595fd89d9207612335911cee5a8e7353395447107972f88f6e3
4
+ data.tar.gz: 9a066d33626c2014c8120148c8609ba44e69b5b0eebd9a63f91bc6e2f22176f4
5
5
  SHA512:
6
- metadata.gz: 6aeaa23fda513f0b707252be4009fa6b25c19a8ee9f7ead8761a15893fa5b56a2b1ddba20da408e42f5d8c7759dc1b53c9faba19b20eecac28b5dfdf863c8703
7
- data.tar.gz: d2abd9350b5b98b43db54214b9cdf4a8fdc40858a66a4ea8f0ad301870326d16892287ad5ae1ac4a8dda70db2545e0d4ed12092e2bf265b3ae249137323bc311
6
+ metadata.gz: bcea744100d37ad68316f6029fba2a5ac3b39dc441a4459b4c060252647ff7011fb75d6e4a655de9cc8ad46848ff34700f6e3e04d4166f0ba4744bff30568462
7
+ data.tar.gz: 1e7ebe17dc2f554576a43af5b6221f85635d7a583477541ec06b492bb01a819f7a047a18a530b048430696a6cc787ccc2b0953b3e3bf5415bd9af850b19f5f12
@@ -31,10 +31,10 @@ module Admin
31
31
  col :organization, visible: false
32
32
 
33
33
  col :applicant_type, search: EffectiveMemberships.Applicant.categories
34
- col :category, label: 'Applicant Category', search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
35
- col :stream
36
34
  col :from_category, search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
37
35
  col :from_status, search: { collection: EffectiveMemberships.Status.all, polymorphic: false }
36
+ col :category, label: 'Applicant Category', search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
37
+ col :stream
38
38
 
39
39
  col :applicant_reviews, visible: false
40
40
  col :orders, visible: false
@@ -5,14 +5,14 @@
5
5
  %p The #{applicant} will be <strong>approved</strong>
6
6
  %p Their membership will be removed and they will be marked as resigned.
7
7
 
8
- - elsif f.object.reinstatement?
8
+ - elsif f.object.reinstatement? && applicant.owner.reinstatement_membership_history.present?
9
9
  - reinstatement = applicant.owner.reinstatement_membership_history
10
10
 
11
11
  %p The #{applicant} will be <strong>approved</strong>
12
12
  %p Their membership will be reinstated and they will regain the following category, number and status:
13
13
 
14
14
  %ul
15
- %li Category: #{reinstatement.membership_categories.to_sentence}
15
+ %li Category: #{reinstatement.membership_categories.try(:to_sentence)}
16
16
  %li Number: #{reinstatement.number}
17
17
  %li Status: #{badges(reinstatement.membership_statuses).presence || 'None'}
18
18
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.17.9'
2
+ VERSION = '0.17.11'
3
3
  end
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.17.9
4
+ version: 0.17.11
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-05-25 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -577,7 +577,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
577
577
  - !ruby/object:Gem::Version
578
578
  version: '0'
579
579
  requirements: []
580
- rubygems_version: 3.1.2
580
+ rubygems_version: 3.4.10
581
581
  signing_key:
582
582
  specification_version: 4
583
583
  summary: Manage your professional association online. Membership categories, applications