aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-08-06 03:22:38 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-08-06 03:22:38 +0000
commitc06467fc23418fa67d461b970753cf299a88a879 (patch)
tree58605196e03759f9bf6ca9457e6531548a7a4789 /railties
parentcbc3afb8786a9e6caa486fa2c97b17348c9eff51 (diff)
downloadrails-c06467fc23418fa67d461b970753cf299a88a879.tar.gz
rails-c06467fc23418fa67d461b970753cf299a88a879.tar.bz2
rails-c06467fc23418fa67d461b970753cf299a88a879.zip
Move method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/initializer.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index d18a5ecc4d..8abc3231db 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -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