Forum: Ruby on Rails How do I force loading of a non-default library?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
John G. (Guest)
on 2006-06-10 01:39
I deployed a Ferret-enabled app to TextDrive with ferret.rb and
associated libraries installed in RAILS_ROOT/lib. For a while, I've
convinced Rails to load ferret.rb from there, but only by hard-coding
it. Today, with no other changes (that I'm aware of), it suddenly
stopped working and now insists on loading ferret.rb from
/usr/local/lib/....

Is there a safe way to override the load path?

(And why doesn't Rails try to load local libraries first, before
searching through server-wide paths?)
This topic is locked and can not be replied to.