preflex 1.0.0 → 1.0.2

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: e71862b1384da913297dc1a47fe91505cfdacc5623a1144ce1073c7f00e2d960
4
- data.tar.gz: 403b45918e618161d15584d5d26e106a588728d80e1614953eedc7b55728d2b0
3
+ metadata.gz: b0cb0a752fe66d801d00827940783318374c10dc4a7382ebd031b3ac01c27be8
4
+ data.tar.gz: 1bd4abe73284d139bbcad60ea4774029706350e7fb08883d50cb34c77c589374
5
5
  SHA512:
6
- metadata.gz: 8414c6f22471c66cdaaf76138e0f88fcdc0376ef942e32de98a69f60da88d1980ed932a91f8f31e84a7468ef6335773876f84567b66052fd18e3e6812ce4685b
7
- data.tar.gz: 905fa3b347ea9601515394e7b6b7685f172336c563113347e0ec8fc9dddeed442147795bb20ea0afa0da6b69a86c2f41a7401193828a4760a9d9a247d83eef03
6
+ metadata.gz: b2b1a598effa70e88c2f975cc6e62c8c69634f3ad40feb396baac8a62f835e780114b90ba17868e3e1d5e25db06b3cb2987748ec6b65fc69e3327bd11b802181
7
+ data.tar.gz: 493cce13adcb46ba31595521ec4b0d3656b8e145a596be0a27c0757fa14b23cca263934c51d9d389abe62a2eb874858f6602afb28a0fb58a902bfd6180dd4b33
@@ -4,9 +4,11 @@ module Preflex
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace Preflex
6
6
 
7
- config.to_prepare do
8
- Preflex.base_controller_class.include(Preflex::SetCurrentContext)
9
- Preflex.base_controller_class_for_update.include(Preflex::SetCurrentContext) unless Preflex.base_controller_class_for_update < Preflex.base_controller_class
7
+ initializer 'preflex.set_current_context' do |app|
8
+ app.reloader.to_prepare do
9
+ Preflex.base_controller_class.include(Preflex::SetCurrentContext)
10
+ Preflex.base_controller_class_for_update.include(Preflex::SetCurrentContext) unless Preflex.base_controller_class_for_update < Preflex.base_controller_class
11
+ end
10
12
  end
11
13
  end
12
14
  end
@@ -1,3 +1,3 @@
1
1
  module Preflex
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owais
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-12 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails