Skip to content

Commit a86c54a

Browse files
authored
Remove docs on multiple applications
Fixes rails#42319 Per rails#42319 (comment) this is not meant to be supported.
1 parent 4a23cb3 commit a86c54a

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

railties/lib/rails/application.rb

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,29 +57,6 @@ module Rails
5757
# 9) Build the middleware stack and run to_prepare callbacks
5858
# 10) Run config.before_eager_load and eager_load! if eager_load is true
5959
# 11) Run config.after_initialize callbacks
60-
#
61-
# == Multiple Applications
62-
#
63-
# If you decide to define multiple applications, then the first application
64-
# that is initialized will be set to +Rails.application+, unless you override
65-
# it with a different application.
66-
#
67-
# To create a new application, you can instantiate a new instance of a class
68-
# that has already been created:
69-
#
70-
# class Application < Rails::Application
71-
# end
72-
#
73-
# first_application = Application.new
74-
# second_application = Application.new(config: first_application.config)
75-
#
76-
# In the above example, the configuration from the first application was used
77-
# to initialize the second application. You can also use the +initialize_copy+
78-
# on one of the applications to create a copy of the application which shares
79-
# the configuration.
80-
#
81-
# If you decide to define Rake tasks, runners, or initializers in an
82-
# application other than +Rails.application+, then you must run them manually.
8360
class Application < Engine
8461
autoload :Bootstrap, "rails/application/bootstrap"
8562
autoload :Configuration, "rails/application/configuration"

0 commit comments

Comments
 (0)