I am using whenever and seed_dump gem. I am getting the following error while running whenever --update-crontab
.
config/schedule.rb:11:in `block in initialize': uninitialized constant Whenever::JobList::RAILS_ROOT (NameError)
my schedule.rb file.
every 48.hours do
command "rm #{RAILS_ROOT}/db/seeds.rb"
rake "db:seed:dump"
end
What does the error says? What should I do? Thanks in advance.