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: 9fa32a634100dd3840025efd72b1698d500c9f8eb056c6122f6c77d4aa4e6397
4
- data.tar.gz: 85f81da508324d9db11235c7714cfcec9778a67e2583b5d71ba5b691fc25cb22
3
+ metadata.gz: ba248594c0b6174571533c4ada573c54e54acf95f13e8febb72c682d5aff64b9
4
+ data.tar.gz: 39a0b4e7ec269615905514435bdf4176b451f26531b25b6cddbf01f4ff6f5307
5
5
  SHA512:
6
- metadata.gz: dc01d62ac0d3c97d85d64407ab54080b6e02f4259132bbc5c9752e7801db08c408d78945e9e73e587f456a587c81d8b56ac6a06877e741e57f62321e75741da1
7
- data.tar.gz: 38e49d065c3667c57439e1b8e754b5cbebd7a1b2548ed90f14ac2434a1a7399adaa4b2bd98e58ea4c38240c00303ed74d0f2698c35e00672a608534e6d9dbeaf
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.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
@@ -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
- ActiveSupport.on_load :active_record do
12
+ app.config.to_prepare do
13
13
  ActiveRecord::Base.extend(EffectiveCommitteesUser::Base)
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveCommittees
2
- VERSION = '0.3.6'.freeze
2
+ VERSION = '0.3.8'.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.6
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-24 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails