effective_mentorships 0.3.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d108b6f623e6830dc7f8472bc8a6b24a5bd0e5f960cf681e7d9a0af91fb96c76
4
- data.tar.gz: 3ec7750b99ee913338db52f3c5993ee52f1835573d7e64516ff85098bd6b3c60
3
+ metadata.gz: 5f728ffae1604d9be50183e8f8175e2ac6d13abc13ee3393a66be989e323f628
4
+ data.tar.gz: c0979bcd8ef4e06b7e23dba107983bd751b1fa59b9d761a04b280421899a4762
5
5
  SHA512:
6
- metadata.gz: 8dea56a517526afddbe848866e61ae143b51a55076ed1780ee6d250fbd2200e94bc20520c2d8abedf8851821770bf5694126b3ff5a5b587577b7658aaae067c5
7
- data.tar.gz: 0ef916d861109f3b03f1533d416b36683e75016e3f1aeb6a974191df60ca4dac59e25472f0f6a430921d249fac7d62ad28ae8241b336e2a14a021f0746849e31
6
+ metadata.gz: 185ca5bc7c53553948a11e946651cf2394a8c1e3a62ba93e941fbec137d67ca94ffd4bea4e4a29ebdacf05421bf85fe625f4b29d733f3f0b99f8d2dc25bec816
7
+ data.tar.gz: d7cd8cf6371835ff698411c42101f60509af43a7a5646f266adddee8ab9fc8aa3da2f18f79acdb025072512cde4959fc3ea66cddc9731e9a2d2be6d9ac7e7f21
@@ -103,6 +103,10 @@ module EffectiveMentorshipsUser
103
103
  scope :mentorships_mentee_in_mentorship_cycle_id, -> (membership_cycle_id) {
104
104
  mentorships_mentees_with_groups(membership_cycle_id)
105
105
  }
106
+
107
+ scope :mentorships_opted_in_but_not_grouped_in_mentorship_cycle_id, -> (membership_cycle_id) {
108
+ mentorships_opted_in(membership_cycle_id).where(id: mentorships_without_groups(membership_cycle_id))
109
+ }
106
110
  end
107
111
 
108
112
  # Used for the dashboard datatables. Which cycles can we register for?
@@ -1,3 +1,3 @@
1
1
  module EffectiveMentorships
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_mentorships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.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: 2025-01-27 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails