def prepare_dispatcher
return unless configuration.frameworks.include?(:action_controller)
require 'dispatcher' unless defined?(::Dispatcher)
Dispatcher.define_dispatcher_callbacks(configuration.cache_classes)
Dispatcher.run_prepare_callbacks
end
ルーティングの肝となるディスパッチャの準備を整えている・・・らしい;;
詳しくは、action_packを読まないと無理だな。
[Rails][CodeReading] Railsの初期化コードを読む (イントロ&目次)
0 件のコメント:
コメントを投稿