I have a file in the lib directory of a rails 3 project called slot.rb. It creates a module called SojournerSupport, and contains a class called Slot. I have the following my config/application.rb file:
config.autoload_paths += %W(#{config.root}/lib)
I then include the module in the model that I need it like so:
include SojournerSupport
This works fine locally on my machine, but when trying to run the app in heroku it says "uninitialized constant ShipRecord::SojournerSupport (NameError)" ShipRecord being the name of the model that I include the module in.
Any ideas or suggestions?