effective_committees 0.3.5 → 0.3.7

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: e28282d238abfca45a4fea8be72728d21bafd74aad6b38abb849e9df45a73e30
4
- data.tar.gz: 20defd897b8846e1c4f6353a0cddc21e912984bd5b5470b72088729ac79b3b2b
3
+ metadata.gz: 88193e5be302af15e49c0ebad2e644f3078c03b8902516fdb08e6f794c87397c
4
+ data.tar.gz: e0330394def0ac2db747f96b5448a50c17e852bc81b1d0c3a65c5acb323ce8da
5
5
  SHA512:
6
- metadata.gz: 6382fab2239e1aeb85b9633d93fff8a9c5e94b8f877282a57990920fbdc6ea2a0c291346627fc966213cac1d2f715d3560b9ae4dbd4853b6348fc38c55d736c9
7
- data.tar.gz: 8974e1afaf75472c938be8bb31b0c5ffe2e315341a7031a620f26a5ef173cca7a56fa4857954ef2d8aad5fb306de64e732f7eb65087abddf61c7a46fc86d13c7
6
+ metadata.gz: 44355aaa14c5936f44a80f09364c930e947f0342c4cc1128d1ff7ac1297803e65b655273a8abee4456677e2c1fd2e31d591ee8063e899b61bfe03fe703e9fe9e
7
+ data.tar.gz: de3059e0d5145f7b90ce188862822d848100be6f37a7c759cd8494d272ceab3210d765231e30d866444ba848e9286d6ae4feefa47d5a6212971bba4eb71640ce
@@ -30,7 +30,7 @@ module Effective
30
30
  end
31
31
 
32
32
  scope :sorted, -> { order(:title) }
33
- scope :deep, -> { includes(committee_members: [:user], committee_folders: [:committee_files, :rich_text_body]) }
33
+ scope :deep, -> { with_rich_text_body.includes(committee_members: [:user], committee_folders: [:committee_files, :rich_text_body]) }
34
34
 
35
35
  validates :title, presence: true, uniqueness: true, length: { maximum: 255 }
36
36
 
@@ -7,7 +7,7 @@
7
7
  - if inline_datatable? && inline_datatable.attributes[:committee_folder_id].present?
8
8
  = f.hidden_field :committee_folder_id
9
9
  - elsif inline_datatable?
10
- = f.select :committee_folder_id, Effective::CommitteeFolder.sorted.all.where(committee: committee_file.committee)
10
+ = f.select :committee_folder_id, Effective::CommitteeFolder.deep.where(committee: committee_file.committee_id)
11
11
  - else
12
12
  = f.select :committee_id, Effective::Committee.sorted.all
13
13
  = f.select :committee_folder_id, Effective::CommitteeFolder.sorted.all
@@ -19,9 +19,9 @@
19
19
  %tr
20
20
  %td
21
21
  - if file.file.attached?
22
- = link_to(icon('download') + file, url_for(file.file), target: '_blank')
22
+ = link_to(icon('download') + file.to_s, url_for(file.file), target: '_blank')
23
23
  - else
24
- = file
24
+ = file.to_s
25
25
 
26
26
  %td= file.created_at.strftime('%F')
27
27
  %td= file.notes
@@ -1,3 +1,3 @@
1
1
  module EffectiveCommittees
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.3.7'.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.5
4
+ version: 0.3.7
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-23 00:00:00.000000000 Z
11
+ date: 2023-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails