diff options
author | Umar Sheikh <umar.m.sheikh@gmail.com> | 2010-10-21 14:41:00 +0500 |
---|---|---|
committer | Umar Sheikh <umar.m.sheikh@gmail.com> | 2010-10-21 14:41:00 +0500 |
commit | a04b2131de72c03d9b2568c282585629e08bb692 (patch) | |
tree | dc434fb1ef6dc04479381d4b260938e93e44a526 | |
parent | d619b9d1d1ad8d7497bf24283b2318c056283f48 (diff) | |
download | rails-a04b2131de72c03d9b2568c282585629e08bb692.tar.gz rails-a04b2131de72c03d9b2568c282585629e08bb692.tar.bz2 rails-a04b2131de72c03d9b2568c282585629e08bb692.zip |
ActiveSupport::Dependencies' methods load_paths and load_once_paths have
changed names to autoload_paths and autoload_once_paths respectively
-rw-r--r-- | railties/guides/source/plugins.textile | 16 |
1 files changed, 8 insertions, 8 deletions
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 </ruby> @@ -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 </ruby> @@ -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 </ruby> @@ -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: |