mirror of
https://github.com/github/rails.git
synced 2026-01-29 16:28:09 -05:00
Move method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user