diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 16 |
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 |