aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-10-24 00:40:32 +0200
committerXavier Noria <fxn@hashref.com>2010-10-24 00:40:32 +0200
commitb0aae2842275427b3842ca99d2d56c3fb96f8f6d (patch)
treef216e0a2909fb6513da8d3c26989ef849430fd18
parent5f5496c7f3a9351d3e6caef727654fa2b4bdb311 (diff)
parenta04b2131de72c03d9b2568c282585629e08bb692 (diff)
downloadrails-b0aae2842275427b3842ca99d2d56c3fb96f8f6d.tar.gz
rails-b0aae2842275427b3842ca99d2d56c3fb96f8f6d.tar.bz2
rails-b0aae2842275427b3842ca99d2d56c3fb96f8f6d.zip
Merge branch 'master' of git://github.com/lifo/docrails
-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: