effective_resources 2.26.0 → 2.26.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c1d1d08ea965b86966add386e7676e3f4961289ea9bc7c2a1f05b81d5dfd6e6
|
4
|
+
data.tar.gz: 28e1fd1ec285d91b62c7b0f082de1b3a8183647b67a101240b6d7e6aa4c2a79a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f652b7ef3003bb3cf6a439f2bedc84bfd49f7391f3eb4040d3c49d7739142803d393fd08d0bf3620274639ff2b0ff7939c0e682d91e99df8afd79449ce11987
|
7
|
+
data.tar.gz: 44f0c457a5cc6692489b2f6809aed69379d28984d662fc0401b9894c940a28edc03d051e196bdfd44702ff9f460c9270c3e5f50c99358c6d056492c1ac4af677
|
@@ -12,6 +12,11 @@ module Effective
|
|
12
12
|
collection = current_user.class.all
|
13
13
|
collection = collection.includes(:organizations) if with_organizations
|
14
14
|
|
15
|
+
# Display only related organization users
|
16
|
+
if with_organizations && params[:related]
|
17
|
+
collection = collection.where(id: current_user.organizations.flat_map(&:users))
|
18
|
+
end
|
19
|
+
|
15
20
|
respond_with_select2_ajax(collection, skip_authorize: true) do |user|
|
16
21
|
data = { first_name: user.first_name, last_name: user.last_name, email: user.email }
|
17
22
|
|
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.26.
|
4
|
+
version: 2.26.1
|
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: 2024-10-
|
11
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|