Method: Rails::Application.inherited

Defined in:
railties/lib/rails/application.rb

.inherited(base) ⇒ Object



70
71
72
73
74
75
76
77
# File 'railties/lib/rails/application.rb', line 70

def inherited(base)
  super
  Rails.app_class = base
  # lib has to be added to $LOAD_PATH unconditionally, even if it's in the
  # autoload paths and config.add_autoload_paths_to_load_path is false.
  add_lib_to_load_path!(find_root(base.called_from))
  ActiveSupport.run_load_hooks(:before_configuration, base)
end