preflex 1.0.2 → 1.0.4

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: b0cb0a752fe66d801d00827940783318374c10dc4a7382ebd031b3ac01c27be8
4
- data.tar.gz: 1bd4abe73284d139bbcad60ea4774029706350e7fb08883d50cb34c77c589374
3
+ metadata.gz: 93ff9ac254c499f07c9703b93a5acade2bc3b5b7abdd9b1c12e06aca08d02472
4
+ data.tar.gz: fda569cd181bf0af1d9bcc287846bd3361156536e5179189e735b7feb9066996
5
5
  SHA512:
6
- metadata.gz: b2b1a598effa70e88c2f975cc6e62c8c69634f3ad40feb396baac8a62f835e780114b90ba17868e3e1d5e25db06b3cb2987748ec6b65fc69e3327bd11b802181
7
- data.tar.gz: 493cce13adcb46ba31595521ec4b0d3656b8e145a596be0a27c0757fa14b23cca263934c51d9d389abe62a2eb874858f6602afb28a0fb58a902bfd6180dd4b33
6
+ metadata.gz: 207fa6e28e81f557c521c2508ba9b5cac219f36ca2710dc9b519112f20a3f7d3fe800d1a420f497dac4f4995c6451116bf526216f52ddd00d9abb6dd134cd986
7
+ data.tar.gz: b421a971532f726599d94b12641c9e7cc550f48c49941e62608dbeb33f1f89881341faa73f6e911d43408c8eb1ac9ef65ccaa7e0371be37c72c63bbc78ee016d
@@ -4,11 +4,9 @@ module Preflex
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace Preflex
6
6
 
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
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
12
10
  end
13
11
  end
14
12
  end
@@ -1,3 +1,3 @@
1
1
  module Preflex
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owais