Class | Merb::BootLoader::Router |
In: |
merb-core/lib/merb-core/bootloader.rb
|
Parent: | Merb::BootLoader |
Loads the router file. This needs to happen after everything else is loaded while merb is starting up to ensure the router has everything it needs to run.
Tries to find the router file.
String: | The path to the router file if it exists, nil otherwise. |
:api: private
# File merb-core/lib/merb-core/bootloader.rb, line 1073 1073: def router_file 1074: @router_file ||= begin 1075: if File.file?(router = Merb.dir_for(:router) / Merb.glob_for(:router)) 1076: router 1077: end 1078: end 1079: end