effective_committees 0.3.6 → 0.3.8
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: ba248594c0b6174571533c4ada573c54e54acf95f13e8febb72c682d5aff64b9
|
4
|
+
data.tar.gz: 39a0b4e7ec269615905514435bdf4176b451f26531b25b6cddbf01f4ff6f5307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb7f1dcefae0181c0a63a43fa44ca45d0d30082f1678c8da11a82eb7035444ca0dd765104105e6e9f232c3a382083ce01abf80c796877c6d261d00557f29ff19
|
7
|
+
data.tar.gz: '09a97531dbd864133290d0a30ae6401c04f27aa7aee9b4591065f9e4a807b64324dc9e945e34a6872f107df08b0b204ad22ca25fe7d7584c958e7ac5e7772bc9'
|
@@ -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.
|
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
|
@@ -9,7 +9,7 @@ module EffectiveCommittees
|
|
9
9
|
|
10
10
|
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
|
11
11
|
initializer 'effective_committees.active_record' do |app|
|
12
|
-
|
12
|
+
app.config.to_prepare do
|
13
13
|
ActiveRecord::Base.extend(EffectiveCommitteesUser::Base)
|
14
14
|
end
|
15
15
|
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.
|
4
|
+
version: 0.3.8
|
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
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|