aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/plugins.textile
diff options
context:
space:
mode:
authorUmar Sheikh <umar.m.sheikh@gmail.com>2010-10-21 14:41:00 +0500
committerUmar Sheikh <umar.m.sheikh@gmail.com>2010-10-21 14:41:00 +0500
commita04b2131de72c03d9b2568c282585629e08bb692 (patch)
treedc434fb1ef6dc04479381d4b260938e93e44a526 /railties/guides/source/plugins.textile
parentd619b9d1d1ad8d7497bf24283b2318c056283f48 (diff)
downloadrails-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
Diffstat (limited to 'railties/guides/source/plugins.textile')
-rw-r--r--railties/guides/source/plugins.textile16
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: