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 +4 -4
- data/app/datatables/admin/effective_committee_members_datatable.rb +2 -2
- data/app/models/effective/committee.rb +1 -1
- data/app/models/effective/committee_file.rb +1 -1
- data/app/models/effective/committee_folder.rb +1 -1
- data/lib/effective_committees/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dbf5431951175c003067b688990bab70bed951ce3ce3789aced0cd086582860
|
4
|
+
data.tar.gz: 21df5777b6941e57da909d5052eab66cd000b4f24ee7c1cc2bac03bbf943372b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d468e614bebd4783bfe3ba8a794d0581e6e41936f86a1480dfdd7ca5316068436cfc22d3f53b935fe2d64e43f753916f7ee8305ae2f5f61caa275b931f4e7410
|
7
|
+
data.tar.gz: d19d8a0f10d252b32ce11bbd3346e07c7e33c993862af462d35160a8000eb845861a982402a625d6c91ca04ef692c84c55975c0a00e51be0d016f551b1fd2f96
|
@@ -30,7 +30,7 @@ module Effective
|
|
30
30
|
end
|
31
31
|
|
32
32
|
scope :sorted, -> { order(:title) }
|
33
|
-
scope :deep, -> { includes(:
|
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 },
|
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.
|
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-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|