effective_committees 0.3.1 → 0.3.3

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: dbb31cf79d4104f80164f1aa448576bdf3dbbf8d9546ee8168aad468bb3ac323
4
- data.tar.gz: 91c44c4d88408777dbca98d9e5c9a27df9f57a7f4edd81be4cd62b53e7a7fd35
3
+ metadata.gz: 40736c7f879ac06a88e47593879009792acf06e842243159c790bc5e70f1e815
4
+ data.tar.gz: c80bd2a5c4ed9ff27887a6ce78289b07595bd85def56f2830421b7d590920c32
5
5
  SHA512:
6
- metadata.gz: 784777f99c05787247df597ebd89faa5b536cf66ecb426d98e2e5d8750f370af1e419d54b23311b69f570fe6879023aa22dd7823fa5f1f8eb23fa588ea147075
7
- data.tar.gz: dae5f13349c215669f55f1ee65479370235f9dc29a16a2df63b23a0e2028d85f5710d489baf74b0616f202bf8e6c80b8e8926f71b842da3e54091af2d171753f
6
+ metadata.gz: b2cd0462498e023278e45c9712a7ef4dcf064adf83a508f4a82cbdd573b304000d04a033dfe29d0f23b0b346b322dd4475837d53376c94374be267c7e28b1251
7
+ data.tar.gz: e7d500cc74280a47f43f3a8826a1e81ffe65b01894af08b1cc6137958ccb1ac2e75f2e7c3358034f88a5c95451e896f0a1f10767037b7defb31ddde75877db91
@@ -7,7 +7,7 @@ class EffectiveCommitteesDatatable < Effective::Datatable
7
7
 
8
8
  col :title, label: 'Committee'
9
9
 
10
- col :committee_members, search: :string, label: 'Members'
10
+ col :committee_members, search: :string, label: 'Members', visible: false
11
11
 
12
12
  col :committee_folders, search: :string, label: 'Folders'
13
13
 
@@ -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)
@@ -1,10 +1,8 @@
1
1
  %h2 Committees
2
2
 
3
3
  - if current_user.committees.present?
4
- %p You are a member of #{pluralize(current_user.committees.length, 'committee')}.
5
-
6
4
  - datatable = EffectiveResources.best('EffectiveCommitteesDatatable').new(self, namespace: :effective)
7
5
  = render_datatable(datatable, simple: true)
8
6
 
9
7
  - else
10
- %p You are not a committee member. When you join a committee, we'll show it here.
8
+ %p You aren't assigned to any committees. When you are, we'll show them here.
@@ -1,3 +1,3 @@
1
1
  module EffectiveCommittees
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_committees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.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: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails