eac_rails_utils 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb14216ef2b7c4f5916a504e6e70ac2241845f9f2e16d996e8542efda76f6a6d
4
- data.tar.gz: 29033d3d3ed5ce8df7586c6a06e76651595ce5bd9f07ae75135947818f598d7e
3
+ metadata.gz: 19a8c90c3c75ded82d146d46936499b9faf8f88b4573ea7cc2e3887060b26736
4
+ data.tar.gz: b6989a70a22cd394da1a4e4664af735f42a1b147c12ce942534eca07d84fe669
5
5
  SHA512:
6
- metadata.gz: 01f1a1048f1ae3a60c470508f4d1aa733185778b094983d9ea89cb9abd16877b8d86d918b861600977c3ea370ca8c860732c1dcbb2dc261e151c18615e3f6a3a
7
- data.tar.gz: 2d669f20b19a8bbad1426ca62ac1a08a0a1760466afe940c4f7a76d50b5873bd425fd00de12995b3abffdfbe9eb4abf332f245356637c4876afdfee8b21107bd
6
+ metadata.gz: 84cbd78c578472ef2d103818c3fdf6279ab3d77076868567e523c96d5da04c2b4cd56845d80b38c514751b01b4987807f3b811ef0c1192ec92044c9efc5ab297
7
+ data.tar.gz: 712f15488d263f71cc152469a9cbf4c4f2581954502b5b9aa328e7d50a49138f76714ae1770e8b00f01e8dbbd5183151d485f92bd0bb8304c4667071152be346
@@ -5,10 +5,15 @@ require 'eac_ruby_utils/core_ext'
5
5
  module EacRailsUtils
6
6
  module EngineHelper
7
7
  common_concern do
8
+ append_autoload_paths
8
9
  append_self_migrations
9
10
  end
10
11
 
11
12
  module ClassMethods
13
+ def append_autoload_paths
14
+ config.autoload_paths += Dir["#{config.root}/lib/**/"]
15
+ end
16
+
12
17
  def append_self_migrations
13
18
  initializer :append_migrations do |app|
14
19
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsUtils
4
- VERSION = '0.16.0'
4
+ VERSION = '0.17.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - E.A.C.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-14 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel-associations