mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge branch 'master' of git://github.com/lifo/docrails
This commit is contained in:
commit
b0aae28422
1 changed files with 8 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue