lib/whenever/web.rb in whenever-web-0.0.4 vs lib/whenever/web.rb in whenever-web-0.0.5

- old
+ new

@@ -3,9 +3,19 @@ require 'whenever/patches/job' require 'whenever/patches/job_list' module Whenever class Web < ::Rails::Engine - engine_name 'whenever' + engine_name self.name.deconstantize isolate_namespace Whenever + + class << self + def config + @config ||= Whenever::WebConfig.new + end + + def job_list + Whenever::WebJobList.new(file: config.schedule_file) + end + end end end