Guest User

Untitled

a guest
Feb 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. # Sequentially step through all of the available initialization routines,
  2. # in order (view execution order in source).
  3. def process
  4. Rails.configuration = configuration
  5.  
  6. check_ruby_version
  7. install_gem_spec_stubs
  8. set_load_path
  9. add_gem_load_paths
  10.  
  11. require_frameworks
  12. set_autoload_paths
  13. add_plugin_load_paths
  14. load_environment
  15.  
  16. initialize_encoding
  17. initialize_database
  18.  
  19. initialize_cache
  20. initialize_framework_caches
  21.  
  22. initialize_logger
  23. initialize_framework_logging
  24.  
  25. initialize_dependency_mechanism
  26. initialize_whiny_nils
  27. initialize_temporary_session_directory
  28. initialize_time_zone
  29. initialize_framework_settings
  30.  
  31. add_support_load_paths
  32.  
  33. load_gems
  34. load_plugins
  35.  
  36. initialize_framework_views
  37.  
  38. # pick up any gems that plugins depend on
  39. add_gem_load_paths
  40. load_gems
  41. check_gem_dependencies
  42.  
  43. load_application_initializers
  44.  
  45. # the framework is now fully initialized
  46. after_initialize
  47.  
  48. # Prepare dispatcher callbacks and run 'prepare' callbacks
  49. prepare_dispatcher
  50.  
  51. # Routing must be initialized after plugins to allow the former to extend the routes
  52. #initialize_routing
  53. initialize_routing
  54.  
  55. # Observers are loaded after plugins in case Observers or observed models are modified by plugins.
  56. load_observers
  57.  
  58. # Load view path cache
  59. load_view_paths
  60.  
  61. # Load application classes
  62. load_application_classes
  63.  
  64. # Disable dependency loading during request cycle
  65. disable_dependency_loading
  66.  
  67. # Flag initialized
  68. Rails.initialized = true
  69. end
Add Comment
Please, Sign In to add comment