Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Commit 4177623

Browse files
author
John Tajima
committed
require config/settings.rb if exists
1 parent 7ca9e82 commit 4177623

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/dashing.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
require 'yaml'
99

1010
SCHEDULER = Rufus::Scheduler.start_new
11-
KEYS = {}
1211

1312
set :root, Dir.pwd
1413

@@ -155,6 +154,11 @@ def tilt_html_engines
155154
end
156155
end
157156

157+
settings_file = File.join(settings.root, 'config/settings.rb')
158+
if (File.exists?(settings_file))
159+
require settings_file
160+
end
161+
158162
Dir[File.join(settings.root, 'lib', '**', '*.rb')].each {|file| require file }
159163
{}.to_json # Forces your json codec to initialize (in the event that it is lazily loaded). Does this before job threads start.
160164

0 commit comments

Comments
 (0)