effective_memberships 0.17.4 → 0.17.6

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: 702306099757c4fc797be8baaab6e90a8f122b1b21ee2d45975c0e9e204c77a9
4
- data.tar.gz: 1ddd79323d0835c87d7625be41b3fa17548f617b06223d655dac3fbf978b03b3
3
+ metadata.gz: d142c13f7d68942b383fff9bc314047b153de3be9cb0c04bb8af51eff8318d40
4
+ data.tar.gz: 51a2c27f121dce157be9c241a49f74c1b40956fd24e2b1b4dec63e640c31fd61
5
5
  SHA512:
6
- metadata.gz: c740293acf21b1f6c31e3c617e0c0a3c76918d7203c29b001b84de562240d1ae2a803bd7743eab552fdedc684626a5841b60e69a5a3e7b8e93d84687a5f08cc1
7
- data.tar.gz: 7dc911eab9b73239a5944bdae2b5ac3593aa069c46e89cee575efc6686e611dfbbee6d4b0b1a175f4362fbd93ae2e1ab7175ad8a6e10c5c6cc923109d0155f50
6
+ metadata.gz: f024d0dd50619988dd4c01a118b99187b17472db7dc822b1e05ddb0967381824c0096be348ec2d50861e2ac7ef214f74f5c6c956148420ad29c56a819f3e9a3e
7
+ data.tar.gz: 27373898ff7749494413ac78ba8946870d4b5b428df8ca4f3699ead53c00f6678d8c1ff7551d7e26dc91d6c1f915e5254fff3c3932cabb29a5c5ff51c426b3b2
@@ -37,6 +37,7 @@ module EffectiveMembershipsApplicant
37
37
  acts_as_email_form
38
38
  acts_as_purchasable_parent
39
39
  acts_as_tokened
40
+ acts_as_reportable if respond_to?(:acts_as_reportable)
40
41
 
41
42
  acts_as_statused(
42
43
  :draft, # Just Started
@@ -77,7 +78,6 @@ module EffectiveMembershipsApplicant
77
78
 
78
79
  has_many_attached :applicant_files
79
80
  has_many_attached :transcripts
80
-
81
81
  has_many_purgable if respond_to?(:has_many_purgable)
82
82
 
83
83
  # Transcripts Step
@@ -190,6 +190,11 @@ module EffectiveMembershipsApplicant
190
190
  timestamps
191
191
  end
192
192
 
193
+ # effective_reports
194
+ def reportable_scopes
195
+ { draft: nil, submitted: nil, in_progress: nil, done: nil }
196
+ end
197
+
193
198
  scope :deep, -> { includes(:user, :organization, :category, :from_category, :from_status, :orders) }
194
199
  scope :sorted, -> { order(:id) }
195
200
 
@@ -3,6 +3,7 @@ module Effective
3
3
  acts_as_purchasable
4
4
 
5
5
  log_changes(to: :owner) if respond_to?(:log_changes)
6
+ acts_as_reportable if respond_to?(:acts_as_reportable)
6
7
 
7
8
  # Every fee is charged to a owner: a user or an organization
8
9
  belongs_to :owner, polymorphic: true
@@ -39,6 +40,11 @@ module Effective
39
40
  timestamps
40
41
  end
41
42
 
43
+ # effective_reports
44
+ def reportable_scopes
45
+ { purchased: nil, not_purchased: nil }
46
+ end
47
+
42
48
  scope :sorted, -> { order(:id) }
43
49
  scope :deep, -> { includes(:owner, :parent, :category) }
44
50
 
@@ -10,8 +10,7 @@
10
10
  .row.mt-4
11
11
  - group.each do |membership|
12
12
  .col-md
13
- - next unless membership
14
- = render('effective/membership_directory/membership', membership: membership)
13
+ = render('effective/membership_directory/membership', membership: membership) if membership
15
14
 
16
15
  %nav.d-flex.justify-content-center
17
16
  = bootstrap_paginate(results, per_page: membership_directory.per_page)
@@ -1,26 +1,6 @@
1
1
  = render 'layout' do
2
2
  .effective-membership
3
-
4
- %h6= @membership.owner
5
- %p= @membership.categories.map(&:membership_directory_title).to_sentence
6
- %p= @membership.statuses.map(&:membership_directory_title).to_sentence
7
- %p= @membership.number
8
-
9
- - if @membership.owner.respond_to?(:rich_text_body)
10
- .mb-4= @membership.owner.rich_text_body.to_s
11
-
12
- - if @membership.owner.try(:email).present?
13
- %p= reveal_mail_to(@membership.owner.email)
14
-
15
- - if (organizations = @membership.owner.try(:membership_organizations)).present?
16
- .mb-4.membership-directory-organizations
17
- - organizations.each do |organization|
18
- %div= organization
19
-
20
- - if (users = @membership.owner.try(:membership_users)).present?
21
- .mb-4.membership-directory-users
22
- - users.each do |user|
23
- %div= user
3
+ = render('effective/membership_directory/membership', membership: @membership)
24
4
 
25
5
  %hr
26
6
  = link_to 'Return to Directory', effective_memberships.membership_directory_index_path, class: 'btn btn-primary'
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.17.4'
2
+ VERSION = '0.17.6'
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.4
4
+ version: 0.17.6
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-08 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails