From ad63e25c89efd33c05edc6fc80ccf2ce098e5b87 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Thu, 24 Jun 2010 18:36:24 +0800 Subject: [PATCH] config.load_paths is now config.autoload_paths --- test/rails_app/config/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rails_app/config/application.rb b/test/rails_app/config/application.rb index d8424b90..63897c78 100644 --- a/test/rails_app/config/application.rb +++ b/test/rails_app/config/application.rb @@ -17,8 +17,8 @@ require "devise" module RailsApp class Application < Rails::Application # Add additional load paths for your own custom dirs - config.load_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) } - config.load_paths += [ "#{config.root}/app/#{DEVISE_ORM}" ] + config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) } + config.autoload_paths += [ "#{config.root}/app/#{DEVISE_ORM}" ] # Configure generators values. Many other options are available, be sure to check the documentation. # config.generators do |g|