preflex 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/preflex/set_current_context.rb +1 -1
- data/lib/preflex/engine.rb +3 -11
- data/lib/preflex/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d6368ab0c49bb287538ac42ef210be3e67c595c94817322d72a6d441bf9778f
|
4
|
+
data.tar.gz: 810ca7627ba94316f6a5137988c05fb46e771a8490f4a5eb314cbd741c133461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b2d91ef11be51e074c20d1f1697c6cb1df1d0281f4994f872c12b5282671ccc079ef8286dc10abb27cae511c2597aa5afeeeb28612d906f8f21e11a61190cf4
|
7
|
+
data.tar.gz: 9536a14bdcd37d480413db8179b85896ab412752893b4fe70c87e473afc786b27c02429d229a940d6f4beb975091cbdd38507bc271853092d40df4ac35d92d2b
|
data/lib/preflex/engine.rb
CHANGED
@@ -4,17 +4,9 @@ module Preflex
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace Preflex
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
17
|
-
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
|
18
10
|
end
|
19
11
|
end
|
20
12
|
end
|
data/lib/preflex/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owais
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.
|
89
|
+
rubygems_version: 3.5.9
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: A simple but powerful Rails engine for storing preferences, feature flags,
|