I'm trying to require some modules I've written inside my schedule.rake file but am having trouble loading the file 'LoadError: cannot load such file -- app/models/concerns/sharedmethods'
What am I doing wrong? Is it the syntax?
Here is my schedule.rake
task :some_rake_task => :environment do
require 'app/bot/bot.rb'
require 'app/models/concerns/sharedmethods'
include SharedMethods
#some rake function using methods in SharedMethods
end
It seemed like this solved the initial problem:
But bot.rb has:
And I had to change all the follow require statements to: