diff options
Diffstat (limited to 'railties/guides')
-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: |