effective_committees 0.3.1 → 0.3.2
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: 273a03d9378d41c45a5db4debbf70f1df6ff9c2d5cb8030e29ec5cd96aba3b7a
|
4
|
+
data.tar.gz: 7f2a77350d8ad99f96af0ce67fb0c158f3af25285b856df803447b5c1accfc07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9ed1a1c1e46673948c6ded274884fc4d29ad3338ebef7dba0f63a23d0b95b7487cc77243d935b1ae0c89cb54f9520fdfa077566498dca67071081b28383e5e
|
7
|
+
data.tar.gz: 7a8d34ba7fdd401d4ce4af0319e459ad06e732927e8d0cddad374c125176fd730990e05269427069b56451661ab34975590d0d646ca9d87704ca55135471a1aa
|
@@ -22,7 +22,7 @@ module EffectiveCommitteesUser
|
|
22
22
|
accepts_nested_attributes_for :committee_members, allow_destroy: true
|
23
23
|
|
24
24
|
scope :with_committee, -> (committees) {
|
25
|
-
committees = Resource.new(Effective::Committee).search_any(committees) if committees.kind_of?(String)
|
25
|
+
committees = Effective::Resource.new(Effective::Committee).search_any(committees) if committees.kind_of?(String)
|
26
26
|
raise('expected an Effective::Committee') unless committees.present? && Array(committees).all? { |c| c.kind_of?(Effective::Committee) }
|
27
27
|
|
28
28
|
committee_members = Effective::CommitteeMember.where(committee: committees).where(user_type: name)
|