preflex 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/preflex/engine.rb +7 -1
- data/lib/preflex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2446d4f54454cd68e1843b1f5e11f5e76bbe5c1ca0d5fd7779c509f255e4569
|
4
|
+
data.tar.gz: 6fe2a79b8abeef7c8550c6eb39ea632fae9232371182357eaf44f6e5aa21e8ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad2ed33440631fb2a5609d7b3a073f4bed52a63b6684ca6f3b9b74b075cf65f800f73b7295ffda40cde754938c519956d4522b38282b38d773a3937104f9413
|
7
|
+
data.tar.gz: b7312bd7b1b8a036f75b0dcd26c54dfd6b87f98d7299cdbc5d9bc1caded3859899c7bd66dd6f75369653a51a0e3a2e2ec940eec374f850499951577e29f54009
|
data/lib/preflex/engine.rb
CHANGED
@@ -5,9 +5,15 @@ module Preflex
|
|
5
5
|
isolate_namespace Preflex
|
6
6
|
|
7
7
|
initializer 'preflex.set_current_context' do |app|
|
8
|
-
|
8
|
+
include_current_context = -> {
|
9
9
|
Preflex.base_controller_class.include(Preflex::SetCurrentContext)
|
10
10
|
Preflex.base_controller_class_for_update.include(Preflex::SetCurrentContext) unless Preflex.base_controller_class_for_update < Preflex.base_controller_class
|
11
|
+
}
|
12
|
+
app.config.after_initialize do
|
13
|
+
include_current_context.call
|
14
|
+
app.reloader.to_prepare do
|
15
|
+
include_current_context.call
|
16
|
+
end
|
11
17
|
end
|
12
18
|
end
|
13
19
|
end
|
data/lib/preflex/version.rb
CHANGED