effective_resources 2.37.2 → 2.37.3

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: 1eeb064dbf6f9a14069da78bf0437ca32d399cec01e778c5d0b71072587010b9
4
- data.tar.gz: 532145ead3e9d2191a403197c068938214af310f1c6829ba4d67e951244827b0
3
+ metadata.gz: 06eadd7128a97253c7c0c8b81e901efdf7395f7a59c081daef0fc4a43ba766e0
4
+ data.tar.gz: 8afda6b2cd9549f78b7c114d8aab0cd96e5d5cd26803564b017c4526be8f801e
5
5
  SHA512:
6
- metadata.gz: 826dd2cb6a2b0a5a68f5644c3039d48b4bae2d8b76d6c00c31bded383d8607f8747f900b0aca7a486a28688f84b17eb8256c4aabce61d417ac2b555415a8a9d9
7
- data.tar.gz: 1d68ac4743277c7591de2a95059bed66dddc120467f52c1cbda109d4a2c31e9d407a8422d74f20f707e94b2aeaaf98db9246e053607151cbf3612e2ed9c21aec
6
+ metadata.gz: a92554287c044ca06f0583913060edadbdc09b0bccc9f1b5207225f6e97d5db64cf975b8e54382c62332fe55ac4b78011c11627fa1a1d416e048259930d8b069
7
+ data.tar.gz: 43562c876ead2ee4d6b74ff5e2fb6f3abc94452b9c9674e761234021564c814247951c49f3e19fb9bb9c8ea100a4d9f8ccf69b4e312328a12876ace5bd15a766
@@ -10,6 +10,7 @@ module Effective
10
10
  with_organizations = current_user.class.try(:effective_memberships_organization_user?)
11
11
 
12
12
  collection = current_user.class.all
13
+ collection = collection.unarchived if collection.respond_to?(:unarchived)
13
14
  collection = collection.includes(:organizations) if with_organizations
14
15
 
15
16
  # Display only related organization users
@@ -43,6 +44,7 @@ module Effective
43
44
  raise('an EffectiveMemberships.Organization is required') unless klass.try(:effective_memberships_organization?)
44
45
 
45
46
  collection = klass.all
47
+ collection = collection.unarchived if collection.respond_to?(:unarchived)
46
48
 
47
49
  respond_with_select2_ajax(collection) do |organization|
48
50
  data = { title: organization.title, email: organization.email }
@@ -302,7 +302,7 @@ module EffectiveDeviseUser
302
302
  end
303
303
 
304
304
  def to_select2
305
- "<span>#{email_to_s}</span> <small>&lt;#{try(:public_email) || email}&gt;</small>"
305
+ "<span>#{email_to_s}</span> <small>&lt;#{try(:public_email).presence || email}&gt;</small>"
306
306
  end
307
307
 
308
308
  # You cannot delete a user if they have any memberships, applicants, orders, or event registrations
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.37.2'.freeze
2
+ VERSION = '2.37.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.37.2
4
+ version: 2.37.3
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: 2026-04-24 00:00:00.000000000 Z
11
+ date: 2026-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails