From a04b2131de72c03d9b2568c282585629e08bb692 Mon Sep 17 00:00:00 2001 From: Umar Sheikh Date: Thu, 21 Oct 2010 14:41:00 +0500 Subject: ActiveSupport::Dependencies' methods load_paths and load_once_paths have changed names to autoload_paths and autoload_once_paths respectively --- railties/guides/source/plugins.textile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'railties/guides/source') diff --git a/railties/guides/source/plugins.textile b/railties/guides/source/plugins.textile index c04c7b9406..7c2725e652 100644 --- a/railties/guides/source/plugins.textile +++ b/railties/guides/source/plugins.textile @@ -602,8 +602,8 @@ This is just a simple test to make sure the class is being loaded correctly. Af %w{ models }.each do |dir| path = File.join(File.dirname(__FILE__), 'app', 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 @@ -669,8 +669,8 @@ This is just a simple test to make sure the controller is being loaded correctly %w{ models controllers }.each do |dir| path = File.join(File.dirname(__FILE__), 'app', 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 @@ -715,8 +715,8 @@ This is just a simple test to make sure the helper is being loaded correctly. A %w{ models controllers helpers }.each do |dir| path = File.join(File.dirname(__FILE__), 'app', 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 @@ -1436,8 +1436,8 @@ require "yaffle/routing" %w{ models controllers helpers }.each do |dir| path = File.join(File.dirname(__FILE__), 'app', 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 # optionally: -- cgit v1.2.3