plutonium 0.15.1 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plutonium/core/controllers/bootable.rb +3 -4
- data/lib/plutonium/version.rb +1 -1
- data/lib/plutonium.rb +1 -0
- 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: efeff0c37b9324cda81466502842699a582497d5e1317c91f164b25874a32449
|
4
|
+
data.tar.gz: 6a96d30f12ebfd707bf82fb32d1603edcf800fe1182764e68da44ec48f39067c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec41dc9bd147b822dcc2073b716226d335b2b66d3f8804fce6d51b5be0ff6b23f0beeed1c9bd57c9f630f5590b2d27f2563de463e2b7ea2fbf48d6889c7c21a2
|
7
|
+
data.tar.gz: 1cc88ca30635864a7a3d522811046382229b2ad1078b48bc31c500094b92e01b18dc4be5f86ba4d2c52f4f548bcdf55d65b34e54e7306852b86e9586cb954b0c
|
@@ -18,11 +18,12 @@ module Plutonium
|
|
18
18
|
end
|
19
19
|
|
20
20
|
class_methods do
|
21
|
-
include Plutonium::Lib::SmartCache
|
22
|
-
|
23
21
|
def inherited(subclass)
|
24
22
|
super
|
25
23
|
|
24
|
+
subclass.include Plutonium::Lib::SmartCache
|
25
|
+
subclass.memoize_unless_reloading :current_package
|
26
|
+
subclass.memoize_unless_reloading :current_engine
|
26
27
|
subclass.boot
|
27
28
|
end
|
28
29
|
|
@@ -42,13 +43,11 @@ module Plutonium
|
|
42
43
|
def current_package
|
43
44
|
(current_engine == Rails.application.class) ? nil : current_engine.module_parent
|
44
45
|
end
|
45
|
-
memoize_unless_reloading :current_package
|
46
46
|
|
47
47
|
def current_engine
|
48
48
|
potential_package = module_parents[-2]
|
49
49
|
potential_package.nil? ? Rails.application.class : ("#{potential_package}::Engine".safe_constantize || Rails.application.class)
|
50
50
|
end
|
51
|
-
memoize_unless_reloading :current_engine
|
52
51
|
end
|
53
52
|
end
|
54
53
|
end
|
data/lib/plutonium/version.rb
CHANGED
data/lib/plutonium.rb
CHANGED
@@ -26,6 +26,7 @@ module Plutonium
|
|
26
26
|
loader.ignore("#{__dir__}/generators")
|
27
27
|
loader.ignore("#{__dir__}/plutonium/railtie.rb")
|
28
28
|
loader.inflector.inflect("ui" => "UI")
|
29
|
+
loader.inflector.inflect("workflow_dsl" => "WorkflowDSL")
|
29
30
|
loader.enable_reloading if defined?(Rails.env) && Rails.env.development?
|
30
31
|
loader.setup
|
31
32
|
end
|