From c06467fc23418fa67d461b970753cf299a88a879 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sun, 6 Aug 2006 03:22:38 +0000 Subject: Move method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/initializer.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'railties') 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 -- cgit v1.2.3