forest_admin_rails 1.32.0 → 1.32.1

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: a6a7f420bdeed68c88d06ae853822826df9600ef8b20444d0bd6e78f2564ddf7
4
- data.tar.gz: 18da099ab322783e01317f244dcf7d0a4d4b9e97f03b1f2ac16daf9a3d2871d3
3
+ metadata.gz: f771924568c9732112d2181cb36d2db0f4d4c91328a8b2c06b9a4c634d5dbc53
4
+ data.tar.gz: 0a77b39ab6ef3a92b2d0506a0f4e6dd053836b0e196c13aba831ce16982eb8b9
5
5
  SHA512:
6
- metadata.gz: 776d28d9714fef991949ae4228a1ce7d92d0ee06c918fc198663e9e1e5f6b9e7d22077897f0d8558b73ddc4e5d38f644faee90580fb4b4a82a3065333b18937c
7
- data.tar.gz: d51534ce0c93f15bb7526a8b7112f56842c38c904608b35b268e3d835dcb19783349afd99b541eb20f837fd552914aa7c39bcef5ed69c6f4e3679d3a3a4d51a5
6
+ metadata.gz: d303f5b21b353cff3bfb6c55160cac231f8d253f8f4f32a36e4260d41110d5af400f41e9421721214fa11efac9a0239463a3fd2c73b455cddca3b508efa89ea0
7
+ data.tar.gz: efd02430c08ab4010433dfade826a95afbffbb61f042484fb84685c70e7c37601d03bb8b2a940e980e609dcefd7988208414b2fe5373372ddb5c9b0debac1976
@@ -24,11 +24,6 @@ module ForestAdminRails
24
24
 
25
25
  extend ActiveSupport::Concern
26
26
 
27
- initializer 'forest_admin_rails.add_autoload_paths', before: :set_autoload_paths do |app|
28
- lib_path = Rails.root.join('lib')
29
- app.config.autoload_paths << lib_path unless app.config.autoload_paths.frozen?
30
- end
31
-
32
27
  initializer 'forest_admin_rails.error_subscribe' do
33
28
  Rails.error.subscribe(ForestAdminErrorSubscriber.new)
34
29
  end
@@ -49,16 +44,20 @@ module ForestAdminRails
49
44
  # force eager loading models
50
45
  Rails.application.eager_load!
51
46
 
47
+ require create_agent_path.to_s
48
+
52
49
  setup_agent_and_cache_routes
53
50
 
54
51
  sse = ForestAdminAgent::Services::SSECacheInvalidation
55
52
  sse.run if ForestAdminRails.config[:instant_cache_refresh]
56
53
  end
57
54
 
58
- def create_agent_file_exists?
59
- path = Rails.root.join('lib', 'forest_admin_rails', 'create_agent.rb')
55
+ def create_agent_path
56
+ Rails.root.join('lib', 'forest_admin_rails', 'create_agent.rb')
57
+ end
60
58
 
61
- File.exist?(path)
59
+ def create_agent_file_exists?
60
+ File.exist?(create_agent_path)
62
61
  end
63
62
 
64
63
  def setup_agent_and_cache_routes
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRails
2
- VERSION = "1.32.0"
2
+ VERSION = "1.32.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.0
4
+ version: 1.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-06-10 00:00:00.000000000 Z
12
+ date: 2026-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64