effective_committees 0.3.3 → 0.3.4

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: 40736c7f879ac06a88e47593879009792acf06e842243159c790bc5e70f1e815
4
- data.tar.gz: c80bd2a5c4ed9ff27887a6ce78289b07595bd85def56f2830421b7d590920c32
3
+ metadata.gz: 2dbf5431951175c003067b688990bab70bed951ce3ce3789aced0cd086582860
4
+ data.tar.gz: 21df5777b6941e57da909d5052eab66cd000b4f24ee7c1cc2bac03bbf943372b
5
5
  SHA512:
6
- metadata.gz: b2cd0462498e023278e45c9712a7ef4dcf064adf83a508f4a82cbdd573b304000d04a033dfe29d0f23b0b346b322dd4475837d53376c94374be267c7e28b1251
7
- data.tar.gz: e7d500cc74280a47f43f3a8826a1e81ffe65b01894af08b1cc6137958ccb1ac2e75f2e7c3358034f88a5c95451e896f0a1f10767037b7defb31ddde75877db91
6
+ metadata.gz: d468e614bebd4783bfe3ba8a794d0581e6e41936f86a1480dfdd7ca5316068436cfc22d3f53b935fe2d64e43f753916f7ee8305ae2f5f61caa275b931f4e7410
7
+ data.tar.gz: d19d8a0f10d252b32ce11bbd3346e07c7e33c993862af462d35160a8000eb845861a982402a625d6c91ca04ef692c84c55975c0a00e51be0d016f551b1fd2f96
@@ -4,8 +4,8 @@ module Admin
4
4
  col :id, visible: false
5
5
  col :user_id, visible: false
6
6
 
7
- col :committee
8
- col :user
7
+ col :committee, search: :string
8
+ col :user, search: :string
9
9
 
10
10
  unless attributes[:user_id]
11
11
  col :email do |committee_member|
@@ -30,7 +30,7 @@ module Effective
30
30
  end
31
31
 
32
32
  scope :sorted, -> { order(:title) }
33
- scope :deep, -> { includes(:committee_members, committee_folders: [:committee_files, :rich_text_body]) }
33
+ scope :deep, -> { 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
 
@@ -26,7 +26,7 @@ module Effective
26
26
  self.title ||= file.filename.to_s
27
27
  end
28
28
 
29
- scope :deep, -> { with_attached_file }
29
+ scope :deep, -> { with_attached_file.includes(:committee, :committee_folder) }
30
30
  scope :sorted, -> { order(:title) }
31
31
 
32
32
  validates :title, presence: true
@@ -26,7 +26,7 @@ module Effective
26
26
  self.position ||= (committee.committee_folders.map { |obj| obj.position }.compact.max || -1) + 1
27
27
  end
28
28
 
29
- scope :deep, -> { includes(:committee, :committee_files) }
29
+ scope :deep, -> { includes(:rich_text_body, :committee, :committee_files) }
30
30
  scope :sorted, -> { order(:position) }
31
31
 
32
32
  validates :title, presence: true, length: { maximum: 250 },
@@ -1,3 +1,3 @@
1
1
  module EffectiveCommittees
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.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.3
4
+ version: 0.3.4
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-14 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails