Move method

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Nicholas Seckar 2006-08-06 03:22:38 +00:00
parent cbc3afb878
commit c06467fc23
1 changed files with 8 additions and 8 deletions

View File

@ -294,14 +294,6 @@ module Rails
configuration.after_initialize_block.call if configuration.after_initialize_block
end
# Add a preparation callback that will run before every request in development
# mode, or before the first request in production.
#
# See Dispatcher#to_prepare.
def to_prepare(&callback)
Dispatcher.to_prepare(&callback)
end
protected
# Return a list of plugin paths within base_path. A plugin path is
# a directory that contains either a lib directory or an init.rb file.
@ -497,6 +489,14 @@ module Rails
@after_initialize_block
end
# Add a preparation callback that will run before every request in development
# mode, or before the first request in production.
#
# See Dispatcher#to_prepare.
def to_prepare(&callback)
Dispatcher.to_prepare(&callback)
end
private
def root_path
::RAILS_ROOT