Class: Schked::Railtie::PathsConfig
- Inherits:
-
Object
- Object
- Schked::Railtie::PathsConfig
- Defined in:
- lib/schked/railtie.rb
Class Method Summary collapse
Class Method Details
.call(app) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/schked/railtie.rb', line 8 def self.call(app) return if Schked.config.do_not_load_root_schedule? root_schedule = app.root.join("config", "schedule.rb") if root_schedule.exist? path = root_schedule.to_s Schked.config.paths << path unless Schked.config.paths.include?(path) end end |