gearhead 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gearhead/engine.rb +5 -1
- data/lib/gearhead/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: '08c4f4e12eac1466b8530e800eed63ddd66d1deba843e71c72a8f5aa41e659e8'
|
4
|
+
data.tar.gz: 672efdd013c30086d023fbdf4aaefd7fff20b982ff4a6ca5d9e83547771bb070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a8e2a4cd7cb4aac4df0e1ae1bc04da699a28dd358f0557551b23bcd31f7211ac17301d06e6e6f1d7c061bd8e6deed31ca2c03b576c8605fdf55697932e9eee
|
7
|
+
data.tar.gz: e14d58df8a37dfe87cfef44a4710e943e0915595ba82430c4ec01fa42b4767c4be99a5257950cdbbfc06dd6e77d1c9c385e62358c8a09f5416473eeb426ac9b9
|
data/lib/gearhead/engine.rb
CHANGED
@@ -4,7 +4,11 @@ module Gearhead
|
|
4
4
|
Dir.glob(Rails.root.join("app/gears/**/*.rb")).each do |gear|
|
5
5
|
load gear
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
|
+
# classic is Rails.autoloaders.main.nil? but let's be specific
|
9
|
+
if Rails.autoloaders.main.is_a?(Zeitwerk::Loader)
|
10
|
+
Rails.autoloaders.main.ignore(Rails.root.join('app/gears'))
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
paths["app/controllers"] = "lib"
|
data/lib/gearhead/version.rb
CHANGED