class Schked::Railtie::PathsConfig

Public Class Methods

call(app) click to toggle source
# File lib/schked/railtie.rb, line 8
def self.call(app)
  if (root_schedule = app.root.join("config", "schedule.rb")).exist?
    path = root_schedule.to_s
    Schked.config.paths << path unless Schked.config.paths.include?(path)
  end
end