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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06eadd7128a97253c7c0c8b81e901efdf7395f7a59c081daef0fc4a43ba766e0
|
|
4
|
+
data.tar.gz: 8afda6b2cd9549f78b7c114d8aab0cd96e5d5cd26803564b017c4526be8f801e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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><#{try(:public_email) || email}></small>"
|
|
305
|
+
"<span>#{email_to_s}</span> <small><#{try(:public_email).presence || email}></small>"
|
|
306
306
|
end
|
|
307
307
|
|
|
308
308
|
# You cannot delete a user if they have any memberships, applicants, orders, or event registrations
|
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.
|
|
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-
|
|
11
|
+
date: 2026-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|