提交 c06467fc 编写于 作者: N Nicholas Seckar

Move method

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 cbc3afb8
......@@ -294,14 +294,6 @@ def after_initialize
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 @@ def after_initialize_block
@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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册