caffeinate 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/caffeinate/engine.rb +8 -0
- data/lib/caffeinate/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: a76e8b67d3a3ab36c7805028f96cc78a7ee734afd966b27711ccbbfc18b0f8f3
|
4
|
+
data.tar.gz: 5aa9c1bcf06842f1def891e6ca2bd911d5e47aa0f447ace61a3a217ace84eb8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162f21354008999da301307dd3ef11d1a5bb3ed8232f54e6abbacf4906fcdf7aa2ad8c6a78683a5ef7816b68a99cdd98cbce1c2da20fa6b52a43543964a672f0
|
7
|
+
data.tar.gz: 3bd71c2357d9e0a205ad66fe524b450df54832436c2ab08f54be288ea637a9cc878e336a533d4bff7e960f3be0e6e47405a1341f2b656981791e1fd0d36dba5e
|
data/lib/caffeinate/engine.rb
CHANGED
@@ -14,6 +14,14 @@ module Caffeinate
|
|
14
14
|
::ActionMailer::Base.register_observer(::Caffeinate::ActionMailer::Observer)
|
15
15
|
end
|
16
16
|
|
17
|
+
unless config.eager_load
|
18
|
+
config.to_prepare do
|
19
|
+
Dir.glob("#{Rails.root}/app/drippers/**/*.rb").each do |f|
|
20
|
+
require f
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
17
25
|
ActiveSupport.on_load(:active_record) do
|
18
26
|
extend ::Caffeinate::ActiveRecord::Extension
|
19
27
|
end
|
data/lib/caffeinate/version.rb
CHANGED