Permalink
Browse files

use new methods autoload_paths and autoload_once_paths in initializer

  • Loading branch information...
1 parent bc471e2 commit 605bcd62e0b9bd63a225246edde7fbd7dd3a3738 @mixr mixr committed with Brady Bouchard Nov 12, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 rails/init.rb
View
@@ -3,8 +3,8 @@
%w{ models controllers helpers }.each do |dir|
path = File.join(File.dirname(__FILE__) , 'lib', dir)
$LOAD_PATH << path
- ActiveSupport::Dependencies.load_paths << path
- ActiveSupport::Dependencies.load_once_paths.delete(path)
+ ActiveSupport::Dependencies.autoload_paths << path
+ ActiveSupport::Dependencies.autoload_once_paths.delete(path)
end
-require 'thumbs_up'
+require 'thumbs_up'

0 comments on commit 605bcd6

Please sign in to comment.