The following code activates autoloading using ActiveSupport 3.x:
require 'active_support'
require 'active_support/dependencies'
relative_load_paths = %w[app/controllers app/models]
ActiveSupport::Dependencies.autoload_paths += relative_load_paths
Posted by Tobias Kraze to makandra dev (2012-06-05 13:02)