I use the following line in an initializer to autoload code in my /lib directory during development: config/initializers/custom.rb: RELOAD_LIBS = Dir[Rails.root + 'lib/**/*.rb'] if Rails.env.development? (from Rails 3 Quicktip: Auto reload lib folders in development mode) It works great, but it's too inefficient to use in production- Instead of loading libs on each request, I just want to load the
