railties 6.0.0 → 7.1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +699 -245
- data/MIT-LICENSE +1 -1
- data/RDOC_MAIN.md +99 -0
- data/README.rdoc +7 -8
- data/lib/minitest/rails_plugin.rb +80 -2
- data/lib/rails/all.rb +0 -1
- data/lib/rails/api/task.rb +37 -5
- data/lib/rails/app_updater.rb +9 -6
- data/lib/rails/application/bootstrap.rb +52 -14
- data/lib/rails/application/configuration.rb +327 -86
- data/lib/rails/application/default_middleware_stack.rb +33 -7
- data/lib/rails/application/dummy_config.rb +19 -0
- data/lib/rails/application/finisher.rb +94 -113
- data/lib/rails/application/routes_reloader.rb +17 -3
- data/lib/rails/application.rb +258 -201
- data/lib/rails/application_controller.rb +3 -4
- data/lib/rails/autoloaders/inflector.rb +21 -0
- data/lib/rails/autoloaders.rb +42 -42
- data/lib/rails/backtrace_cleaner.rb +13 -8
- data/lib/rails/cli.rb +5 -2
- data/lib/rails/code_statistics.rb +6 -4
- data/lib/rails/code_statistics_calculator.rb +16 -7
- data/lib/rails/command/actions.rb +10 -12
- data/lib/rails/command/base.rb +66 -46
- data/lib/rails/command/behavior.rb +3 -3
- data/lib/rails/command/environment_argument.rb +33 -17
- data/lib/rails/command/helpers/editor.rb +17 -12
- data/lib/rails/command.rb +90 -32
- data/lib/rails/commands/about/about_command.rb +14 -0
- data/lib/rails/commands/application/application_command.rb +2 -0
- data/lib/rails/commands/console/console_command.rb +17 -13
- data/lib/rails/commands/credentials/USAGE +54 -39
- data/lib/rails/commands/credentials/credentials_command/diffing.rb +53 -0
- data/lib/rails/commands/credentials/credentials_command.rb +83 -60
- data/lib/rails/commands/db/system/change/change_command.rb +8 -2
- data/lib/rails/commands/dbconsole/dbconsole_command.rb +39 -124
- data/lib/rails/commands/destroy/destroy_command.rb +3 -2
- data/lib/rails/commands/dev/dev_command.rb +1 -6
- data/lib/rails/commands/encrypted/USAGE +15 -20
- data/lib/rails/commands/encrypted/encrypted_command.rb +46 -35
- data/lib/rails/commands/gem_help/USAGE +16 -0
- data/lib/rails/commands/gem_help/gem_help_command.rb +13 -0
- data/lib/rails/commands/generate/generate_command.rb +3 -3
- data/lib/rails/commands/help/USAGE +15 -14
- data/lib/rails/commands/help/help_command.rb +21 -2
- data/lib/rails/commands/initializers/initializers_command.rb +1 -4
- data/lib/rails/commands/middleware/middleware_command.rb +17 -0
- data/lib/rails/commands/new/new_command.rb +2 -0
- data/lib/rails/commands/notes/notes_command.rb +5 -14
- data/lib/rails/commands/plugin/plugin_command.rb +2 -0
- data/lib/rails/commands/rake/rake_command.rb +27 -23
- data/lib/rails/commands/restart/restart_command.rb +14 -0
- data/lib/rails/commands/routes/routes_command.rb +13 -1
- data/lib/rails/commands/runner/USAGE +14 -12
- data/lib/rails/commands/runner/runner_command.rb +34 -21
- data/lib/rails/commands/secret/secret_command.rb +13 -0
- data/lib/rails/commands/secrets/USAGE +44 -43
- data/lib/rails/commands/secrets/secrets_command.rb +20 -38
- data/lib/rails/commands/server/server_command.rb +40 -64
- data/lib/rails/commands/test/USAGE +14 -0
- data/lib/rails/commands/test/test_command.rb +58 -16
- data/lib/rails/commands/unused_routes/unused_routes_command.rb +75 -0
- data/lib/rails/commands/version/version_command.rb +1 -0
- data/lib/rails/configuration.rb +53 -23
- data/lib/rails/console/app.rb +1 -4
- data/lib/rails/console/helpers.rb +2 -2
- data/lib/rails/deprecator.rb +7 -0
- data/lib/rails/engine/configuration.rb +54 -9
- data/lib/rails/engine/updater.rb +1 -1
- data/lib/rails/engine.rb +105 -81
- data/lib/rails/gem_version.rb +5 -5
- data/lib/rails/generators/actions/create_migration.rb +9 -5
- data/lib/rails/generators/actions.rb +275 -97
- data/lib/rails/generators/active_model.rb +28 -14
- data/lib/rails/generators/app_base.rb +487 -165
- data/lib/rails/generators/app_name.rb +3 -14
- data/lib/rails/generators/base.rb +42 -31
- data/lib/rails/generators/database.rb +41 -4
- data/lib/rails/generators/erb/mailer/mailer_generator.rb +0 -1
- data/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt +1 -1
- data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +2 -1
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt +11 -11
- data/lib/rails/generators/erb/scaffold/templates/edit.html.erb.tt +8 -4
- data/lib/rails/generators/erb/scaffold/templates/index.html.erb.tt +11 -28
- data/lib/rails/generators/erb/scaffold/templates/new.html.erb.tt +7 -3
- data/lib/rails/generators/erb/scaffold/templates/partial.html.erb.tt +17 -0
- data/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt +8 -17
- data/lib/rails/generators/erb.rb +1 -2
- data/lib/rails/generators/generated_attribute.rb +60 -19
- data/lib/rails/generators/migration.rb +4 -8
- data/lib/rails/generators/model_helpers.rb +29 -4
- data/lib/rails/generators/named_base.rb +15 -15
- data/lib/rails/generators/rails/app/USAGE +23 -6
- data/lib/rails/generators/rails/app/app_generator.rb +151 -80
- data/lib/rails/generators/rails/app/templates/Dockerfile.tt +103 -0
- data/lib/rails/generators/rails/app/templates/Gemfile.tt +44 -54
- data/lib/rails/generators/rails/app/templates/Rakefile.tt +1 -1
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css.tt +2 -2
- data/lib/rails/generators/rails/app/templates/app/mailers/application_mailer.rb.tt +2 -2
- data/lib/rails/generators/rails/app/templates/app/models/application_record.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +4 -9
- data/lib/rails/generators/rails/app/templates/app/views/layouts/mailer.html.erb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/bin/rails.tt +3 -3
- data/lib/rails/generators/rails/app/templates/bin/rake.tt +2 -2
- data/lib/rails/generators/rails/app/templates/bin/setup.tt +19 -15
- data/lib/rails/generators/rails/app/templates/config/application.rb.tt +18 -23
- data/lib/rails/generators/rails/app/templates/config/boot.rb.tt +3 -3
- data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml.tt +5 -6
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml.tt +12 -11
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml.tt +17 -16
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml.tt +5 -5
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt +12 -11
- data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml.tt +12 -11
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt +17 -18
- data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt +4 -4
- data/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml.tt +14 -13
- data/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt +59 -0
- data/lib/rails/generators/rails/app/templates/config/environment.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +32 -14
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +42 -55
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +27 -15
- data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +3 -5
- data/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt +21 -28
- data/lib/rails/generators/rails/app/templates/config/initializers/cors.rb.tt +3 -3
- data/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt +6 -2
- data/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb.tt +4 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_1.rb.tt +284 -0
- data/lib/rails/generators/rails/app/templates/config/initializers/permissions_policy.rb.tt +13 -0
- data/lib/rails/generators/rails/app/templates/config/locales/en.yml +13 -15
- data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +17 -20
- data/lib/rails/generators/rails/app/templates/config/routes.rb.tt +8 -1
- data/lib/rails/generators/rails/app/templates/config/storage.yml.tt +5 -5
- data/lib/rails/generators/rails/app/templates/config.ru.tt +2 -1
- data/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +7 -5
- data/lib/rails/generators/rails/app/templates/docker-entrypoint.tt +10 -0
- data/lib/rails/generators/rails/app/templates/dockerignore.tt +43 -0
- data/lib/rails/generators/rails/app/templates/gitattributes.tt +9 -0
- data/lib/rails/generators/rails/app/templates/gitignore.tt +12 -9
- data/lib/rails/generators/rails/app/templates/node-version.tt +1 -0
- data/lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.tt +10 -8
- data/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt +13 -11
- data/lib/rails/generators/rails/application_record/application_record_generator.rb +4 -0
- data/lib/rails/generators/rails/benchmark/USAGE +19 -0
- data/lib/rails/generators/rails/benchmark/benchmark_generator.rb +30 -0
- data/lib/rails/generators/rails/benchmark/templates/benchmark.rb.tt +15 -0
- data/lib/rails/generators/rails/controller/USAGE +13 -5
- data/lib/rails/generators/rails/controller/controller_generator.rb +7 -42
- data/lib/rails/generators/rails/controller/templates/controller.rb.tt +1 -5
- data/lib/rails/generators/rails/credentials/credentials_generator.rb +30 -25
- data/lib/rails/generators/rails/credentials/templates/credentials.yml.tt +8 -0
- data/lib/rails/generators/rails/db/system/change/change_generator.rb +31 -1
- data/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb +6 -2
- data/lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator.rb +1 -2
- data/lib/rails/generators/rails/generator/USAGE +2 -2
- data/lib/rails/generators/rails/generator/generator_generator.rb +0 -1
- data/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +1 -1
- data/lib/rails/generators/rails/generator/templates/USAGE.tt +1 -1
- data/lib/rails/generators/rails/helper/USAGE +2 -3
- data/lib/rails/generators/rails/integration_test/USAGE +2 -2
- data/lib/rails/generators/rails/migration/USAGE +22 -12
- data/lib/rails/generators/rails/model/model_generator.rb +4 -0
- data/lib/rails/generators/rails/plugin/USAGE +17 -6
- data/lib/rails/generators/rails/plugin/plugin_generator.rb +86 -46
- data/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt +15 -20
- data/lib/rails/generators/rails/plugin/templates/Gemfile.tt +10 -39
- data/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/README.md.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/Rakefile.tt +4 -18
- data/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt +0 -1
- data/lib/rails/generators/rails/plugin/templates/app/mailers/%namespaced_name%/application_mailer.rb.tt +2 -2
- data/lib/rails/generators/rails/plugin/templates/app/views/layouts/%namespaced_name%/application.html.erb.tt +0 -3
- data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +7 -22
- data/lib/rails/generators/rails/plugin/templates/gitignore.tt +10 -14
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/engine.rb.tt +2 -2
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%.rb.tt +1 -0
- data/lib/rails/generators/rails/plugin/templates/rails/boot.rb.tt +3 -3
- data/lib/rails/generators/rails/plugin/templates/test/%namespaced_name%_test.rb.tt +4 -4
- data/lib/rails/generators/rails/plugin/templates/test/integration/navigation_test.rb.tt +1 -1
- data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb.tt +6 -14
- data/lib/rails/generators/rails/resource/USAGE +4 -4
- data/lib/rails/generators/rails/resource/resource_generator.rb +6 -0
- data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +2 -27
- data/lib/rails/generators/rails/scaffold/USAGE +5 -5
- data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +2 -20
- data/lib/rails/generators/rails/scaffold_controller/USAGE +2 -2
- data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +7 -2
- data/lib/rails/generators/rails/scaffold_controller/templates/api_controller.rb.tt +2 -6
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb.tt +7 -11
- data/lib/rails/generators/rails/system_test/USAGE +2 -2
- data/lib/rails/generators/rails/task/USAGE +3 -3
- data/lib/rails/generators/resource_helpers.rb +2 -2
- data/lib/rails/generators/test_case.rb +3 -3
- data/lib/rails/generators/test_unit/controller/controller_generator.rb +2 -0
- data/lib/rails/generators/test_unit/controller/templates/functional_test.rb.tt +3 -3
- data/lib/rails/generators/test_unit/generator/generator_generator.rb +0 -1
- data/lib/rails/generators/test_unit/generator/templates/generator_test.rb.tt +3 -3
- data/lib/rails/generators/test_unit/integration/integration_generator.rb +0 -1
- data/lib/rails/generators/test_unit/integration/templates/integration_test.rb.tt +1 -1
- data/lib/rails/generators/test_unit/job/templates/unit_test.rb.tt +1 -1
- data/lib/rails/generators/test_unit/mailer/templates/functional_test.rb.tt +1 -1
- data/lib/rails/generators/test_unit/model/templates/fixtures.yml.tt +3 -3
- data/lib/rails/generators/test_unit/model/templates/unit_test.rb.tt +1 -1
- data/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +1 -1
- data/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +2 -2
- data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +4 -5
- data/lib/rails/generators/test_unit/scaffold/templates/api_functional_test.rb.tt +6 -6
- data/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb.tt +8 -8
- data/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt +9 -11
- data/lib/rails/generators/testing/assertions.rb +2 -2
- data/lib/rails/generators/testing/{behaviour.rb → behavior.rb} +8 -7
- data/lib/rails/generators.rb +43 -45
- data/lib/rails/health_controller.rb +55 -0
- data/lib/rails/info.rb +4 -4
- data/lib/rails/info_controller.rb +30 -13
- data/lib/rails/initializable.rb +1 -1
- data/lib/rails/mailers_controller.rb +18 -9
- data/lib/rails/paths.rb +28 -19
- data/lib/rails/rack/logger.rb +17 -17
- data/lib/rails/rackup/server.rb +15 -0
- data/lib/rails/railtie/configurable.rb +0 -1
- data/lib/rails/railtie/configuration.rb +15 -3
- data/lib/rails/railtie.rb +80 -37
- data/lib/rails/ruby_version_check.rb +5 -3
- data/lib/rails/secrets.rb +14 -9
- data/lib/rails/source_annotation_extractor.rb +69 -34
- data/lib/rails/tasks/engine.rake +8 -11
- data/lib/rails/tasks/framework.rake +4 -6
- data/lib/rails/tasks/log.rake +1 -1
- data/lib/rails/tasks/misc.rake +4 -15
- data/lib/rails/tasks/statistics.rake +9 -6
- data/lib/rails/tasks/tmp.rake +13 -6
- data/lib/rails/tasks/yarn.rake +17 -6
- data/lib/rails/tasks/zeitwerk.rake +16 -41
- data/lib/rails/tasks.rb +0 -6
- data/lib/rails/templates/layouts/application.html.erb +15 -0
- data/lib/rails/templates/rails/mailers/email.html.erb +46 -11
- data/lib/rails/templates/rails/mailers/index.html.erb +14 -7
- data/lib/rails/templates/rails/mailers/mailer.html.erb +11 -5
- data/lib/rails/templates/rails/welcome/index.html.erb +65 -48
- data/lib/rails/test_help.rb +13 -14
- data/lib/rails/test_unit/line_filtering.rb +1 -1
- data/lib/rails/test_unit/railtie.rb +0 -4
- data/lib/rails/test_unit/reporter.rb +8 -3
- data/lib/rails/test_unit/runner.rb +61 -19
- data/lib/rails/test_unit/test_parser.rb +88 -0
- data/lib/rails/test_unit/testing.rake +17 -36
- data/lib/rails/testing/maintain_test_schema.rb +16 -0
- data/lib/rails/version.rb +1 -1
- data/lib/rails/welcome_controller.rb +1 -0
- data/lib/rails/zeitwerk_checker.rb +15 -0
- data/lib/rails.rb +31 -23
- metadata +89 -58
- data/RDOC_MAIN.rdoc +0 -98
- data/lib/rails/application/dummy_erb_compiler.rb +0 -18
- data/lib/rails/command/spellchecker.rb +0 -58
- data/lib/rails/generators/css/assets/assets_generator.rb +0 -15
- data/lib/rails/generators/css/assets/templates/stylesheet.css +0 -4
- data/lib/rails/generators/css/scaffold/scaffold_generator.rb +0 -18
- data/lib/rails/generators/rails/app/templates/app/javascript/channels/consumer.js +0 -6
- data/lib/rails/generators/rails/app/templates/app/javascript/channels/index.js +0 -5
- data/lib/rails/generators/rails/app/templates/app/javascript/packs/application.js.tt +0 -23
- data/lib/rails/generators/rails/app/templates/bin/yarn.tt +0 -10
- data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml.tt +0 -50
- data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml.tt +0 -86
- data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb.tt +0 -8
- data/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb.tt +0 -7
- data/lib/rails/generators/rails/app/templates/config/initializers/cookies_serializer.rb.tt +0 -5
- data/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb.tt +0 -4
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt +0 -45
- data/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +0 -16
- data/lib/rails/generators/rails/app/templates/config/spring.rb.tt +0 -6
- data/lib/rails/generators/rails/app/templates/package.json.tt +0 -11
- data/lib/rails/generators/rails/assets/USAGE +0 -17
- data/lib/rails/generators/rails/assets/assets_generator.rb +0 -26
- data/lib/rails/generators/rails/assets/templates/stylesheet.css +0 -4
- data/lib/rails/generators/rails/model/USAGE +0 -114
- data/lib/rails/generators/rails/plugin/templates/rails/application.rb.tt +0 -23
- data/lib/rails/generators/rails/scaffold/templates/scaffold.css +0 -80
- data/lib/rails/tasks/annotations.rake +0 -22
- data/lib/rails/tasks/dev.rake +0 -11
- data/lib/rails/tasks/initializers.rake +0 -9
- data/lib/rails/tasks/middleware.rake +0 -9
- data/lib/rails/tasks/restart.rake +0 -9
- data/lib/rails/tasks/routes.rake +0 -9
data/MIT-LICENSE
CHANGED
data/RDOC_MAIN.md
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
# Welcome to \Rails
|
2
|
+
|
3
|
+
## What's \Rails?
|
4
|
+
|
5
|
+
\Rails is a web-application framework that includes everything needed to
|
6
|
+
create database-backed web applications according to the
|
7
|
+
[Model-View-Controller (MVC)](https://en.wikipedia.org/wiki/Model-view-controller)
|
8
|
+
pattern.
|
9
|
+
|
10
|
+
Understanding the MVC pattern is key to understanding \Rails. MVC divides your
|
11
|
+
application into three layers: Model, View, and Controller, each with a specific responsibility.
|
12
|
+
|
13
|
+
## Model layer
|
14
|
+
|
15
|
+
The _**Model layer**_ represents the domain model (such as Account, Product,
|
16
|
+
Person, Post, etc.) and encapsulates the business logic specific to
|
17
|
+
your application. In \Rails, database-backed model classes are derived from
|
18
|
+
`ActiveRecord::Base`. [Active Record](files/activerecord/README.rdoc) allows you to present the data from
|
19
|
+
database rows as objects and embellish these data objects with business logic
|
20
|
+
methods.
|
21
|
+
Although most \Rails models are backed by a database, models can also be ordinary
|
22
|
+
Ruby classes, or Ruby classes that implement a set of interfaces as provided by
|
23
|
+
the [Active Model](files/activemodel/README.rdoc) module.
|
24
|
+
|
25
|
+
## View layer
|
26
|
+
|
27
|
+
The _**View layer**_ is composed of "templates" that are responsible for providing
|
28
|
+
appropriate representations of your application's resources. Templates can
|
29
|
+
come in a variety of formats, but most view templates are HTML with embedded
|
30
|
+
Ruby code (\ERB files). Views are typically rendered to generate a controller response
|
31
|
+
or to generate the body of an email. In \Rails, View generation is handled by [Action View](files/actionview/README.rdoc).
|
32
|
+
|
33
|
+
## Controller layer
|
34
|
+
|
35
|
+
The _**Controller layer**_ is responsible for handling incoming HTTP requests and
|
36
|
+
providing a suitable response. Usually, this means returning HTML, but \Rails controllers
|
37
|
+
can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and
|
38
|
+
manipulate models, and render view templates in order to generate the appropriate HTTP response.
|
39
|
+
In \Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and
|
40
|
+
controller classes are derived from `ActionController::Base`. Action Dispatch and Action Controller
|
41
|
+
are bundled together in [Action Pack](files/actionpack/README.rdoc).
|
42
|
+
|
43
|
+
## Frameworks and libraries
|
44
|
+
|
45
|
+
[Active Record](files/activerecord/README.rdoc), [Active Model](files/activemodel/README.rdoc), [Action Pack](files/actionpack/README.rdoc), and [Action View](files/actionview/README.rdoc) can each be used independently outside \Rails.
|
46
|
+
|
47
|
+
In addition to that, \Rails also comes with:
|
48
|
+
|
49
|
+
- [Action Mailer](files/actionmailer/README.rdoc), a library to generate and send emails
|
50
|
+
- [Action Mailbox](files/actionmailbox/README.md), a library to receive emails within a \Rails application
|
51
|
+
- [Active Job](files/activejob/README.md), a framework for declaring jobs and making them run on a variety of queuing backends
|
52
|
+
- [Action Cable](files/actioncable/README.md), a framework to integrate WebSockets with a \Rails application
|
53
|
+
- [Active Storage](files/activestorage/README.md), a library to attach cloud and local files to \Rails applications
|
54
|
+
- [Action Text](files/actiontext/README.md), a library to handle rich text content
|
55
|
+
- [Active Support](files/activesupport/README.rdoc), a collection of utility classes and standard library extensions that are useful for \Rails, and may also be used independently outside \Rails
|
56
|
+
|
57
|
+
## Getting Started
|
58
|
+
|
59
|
+
1. Install \Rails at the command prompt if you haven't yet:
|
60
|
+
|
61
|
+
$ gem install rails
|
62
|
+
|
63
|
+
2. At the command prompt, create a new \Rails application:
|
64
|
+
|
65
|
+
$ rails new myapp
|
66
|
+
|
67
|
+
where "myapp" is the application name.
|
68
|
+
|
69
|
+
3. Change directory to `myapp` and start the web server:
|
70
|
+
|
71
|
+
$ cd myapp
|
72
|
+
$ bin/rails server
|
73
|
+
|
74
|
+
Run with `--help` or `-h` for options.
|
75
|
+
|
76
|
+
4. Go to `http://localhost:3000` and you'll see the \Rails bootscreen with your
|
77
|
+
\Rails and Ruby versions.
|
78
|
+
|
79
|
+
5. Follow the guidelines to start developing your application. You may find the
|
80
|
+
following resources handy:
|
81
|
+
|
82
|
+
* [Getting Started with Rails](https://guides.rubyonrails.org/getting_started.html)
|
83
|
+
* [Ruby on Rails Guides](https://guides.rubyonrails.org)
|
84
|
+
* [The API Documentation](https://api.rubyonrails.org)
|
85
|
+
|
86
|
+
## Contributing
|
87
|
+
|
88
|
+
We encourage you to contribute to Ruby on \Rails! Please check out the
|
89
|
+
[Contributing to Ruby on Rails guide](https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html) for guidelines about how to proceed. [Join us!](https://contributors.rubyonrails.org)
|
90
|
+
|
91
|
+
Trying to report a possible security vulnerability in \Rails? Please
|
92
|
+
check out our [security policy](https://rubyonrails.org/security) for
|
93
|
+
guidelines about how to proceed.
|
94
|
+
|
95
|
+
Everyone interacting in \Rails and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the \Rails [code of conduct](https://rubyonrails.org/conduct).
|
96
|
+
|
97
|
+
## License
|
98
|
+
|
99
|
+
Ruby on \Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
|
data/README.rdoc
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
= Railties -- Gluing the Engine to the Rails
|
1
|
+
= Railties -- Gluing the Engine to the \Rails
|
2
2
|
|
3
3
|
Railties is responsible for gluing all frameworks together. Overall, it:
|
4
4
|
|
5
|
-
* handles the bootstrapping process for a Rails application;
|
5
|
+
* handles the bootstrapping process for a \Rails application;
|
6
6
|
|
7
7
|
* manages the +rails+ command line interface;
|
8
8
|
|
9
|
-
* and provides the Rails generators core.
|
10
|
-
|
9
|
+
* and provides the \Rails generators core.
|
11
10
|
|
12
11
|
== Download
|
13
12
|
|
@@ -15,9 +14,9 @@ The latest version of Railties can be installed with RubyGems:
|
|
15
14
|
|
16
15
|
* gem install railties
|
17
16
|
|
18
|
-
Source code can be downloaded as part of the Rails project on GitHub
|
17
|
+
Source code can be downloaded as part of the \Rails project on GitHub
|
19
18
|
|
20
|
-
* https://github.com/rails/rails/tree/
|
19
|
+
* https://github.com/rails/rails/tree/main/railties
|
21
20
|
|
22
21
|
== License
|
23
22
|
|
@@ -31,10 +30,10 @@ API documentation is at
|
|
31
30
|
|
32
31
|
* https://api.rubyonrails.org
|
33
32
|
|
34
|
-
Bug reports can be filed for the Ruby on Rails project here:
|
33
|
+
Bug reports can be filed for the Ruby on \Rails project here:
|
35
34
|
|
36
35
|
* https://github.com/rails/rails/issues
|
37
36
|
|
38
37
|
Feature requests should be discussed on the rails-core mailing list here:
|
39
38
|
|
40
|
-
* https://
|
39
|
+
* https://discuss.rubyonrails.org/c/rubyonrails-core
|
@@ -5,6 +5,19 @@ require "rails/test_unit/reporter"
|
|
5
5
|
require "rails/test_unit/runner"
|
6
6
|
|
7
7
|
module Minitest
|
8
|
+
class BacktraceFilterWithFallback
|
9
|
+
def initialize(preferred, fallback)
|
10
|
+
@preferred = preferred
|
11
|
+
@fallback = fallback
|
12
|
+
end
|
13
|
+
|
14
|
+
def filter(backtrace)
|
15
|
+
filtered = @preferred.filter(backtrace)
|
16
|
+
filtered = @fallback.filter(backtrace) if filtered.empty?
|
17
|
+
filtered
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
8
21
|
class SuppressedSummaryReporter < SummaryReporter
|
9
22
|
# Disable extra failure output after a run if output is inline.
|
10
23
|
def aggregated_results(*)
|
@@ -12,6 +25,46 @@ module Minitest
|
|
12
25
|
end
|
13
26
|
end
|
14
27
|
|
28
|
+
class ProfileReporter < StatisticsReporter
|
29
|
+
def initialize(io = $stdout, options = {})
|
30
|
+
super
|
31
|
+
@results = []
|
32
|
+
@count = options[:profile]
|
33
|
+
end
|
34
|
+
|
35
|
+
def record(result)
|
36
|
+
@results << result
|
37
|
+
end
|
38
|
+
|
39
|
+
def report
|
40
|
+
total_time = @results.sum(&:time)
|
41
|
+
|
42
|
+
@results.sort! { |a, b| b.time <=> a.time }
|
43
|
+
slow_results = @results.take(@count)
|
44
|
+
slow_tests_total_time = slow_results.sum(&:time)
|
45
|
+
|
46
|
+
ratio = (total_time == 0) ? 0.0 : (slow_tests_total_time / total_time) * 100
|
47
|
+
|
48
|
+
io.puts("\nTop %d slowest tests (%.2f seconds, %.1f%% of total time):\n" % [slow_results.size, slow_tests_total_time, ratio])
|
49
|
+
slow_results.each do |result|
|
50
|
+
io.puts(" %s\n %.4f seconds %s\n" % [result.location, result.time, source_location(result)])
|
51
|
+
end
|
52
|
+
io.puts("\n")
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
def source_location(result)
|
57
|
+
filename, line = result.source_location
|
58
|
+
return "" unless filename
|
59
|
+
|
60
|
+
pwd = Dir.pwd
|
61
|
+
if filename.start_with?(pwd)
|
62
|
+
filename = Pathname.new(filename).relative_path_from(pwd)
|
63
|
+
end
|
64
|
+
"#{filename}:#{line}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
15
68
|
def self.plugin_rails_options(opts, options)
|
16
69
|
::Rails::TestUnit::Runner.attach_before_load_options(opts)
|
17
70
|
|
@@ -31,16 +84,36 @@ module Minitest
|
|
31
84
|
options[:color] = value
|
32
85
|
end
|
33
86
|
|
87
|
+
opts.on("--profile [COUNT]", "Enable profiling of tests and list the slowest test cases (default: 10)") do |value|
|
88
|
+
default_count = 10
|
89
|
+
|
90
|
+
if value.nil?
|
91
|
+
count = default_count
|
92
|
+
else
|
93
|
+
count = Integer(value, exception: false)
|
94
|
+
if count.nil?
|
95
|
+
warn("Non integer specified as profile count, separate " \
|
96
|
+
"your path from options with -- e.g. " \
|
97
|
+
"`bin/test --profile -- #{value}`")
|
98
|
+
count = default_count
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
options[:profile] = count
|
103
|
+
end
|
104
|
+
|
34
105
|
options[:color] = true
|
35
106
|
options[:output_inline] = true
|
36
107
|
end
|
37
108
|
|
38
109
|
# Owes great inspiration to test runner trailblazers like RSpec,
|
39
|
-
# minitest-reporters, maxitest and others.
|
110
|
+
# minitest-reporters, maxitest, and others.
|
40
111
|
def self.plugin_rails_init(options)
|
41
112
|
unless options[:full_backtrace] || ENV["BACKTRACE"]
|
42
113
|
# Plugin can run without Rails loaded, check before filtering.
|
43
|
-
|
114
|
+
if ::Rails.respond_to?(:backtrace_cleaner)
|
115
|
+
Minitest.backtrace_filter = BacktraceFilterWithFallback.new(::Rails.backtrace_cleaner, Minitest.backtrace_filter)
|
116
|
+
end
|
44
117
|
end
|
45
118
|
|
46
119
|
# Suppress summary reports when outputting inline rerun snippets.
|
@@ -52,6 +125,11 @@ module Minitest
|
|
52
125
|
if reporter.reporters.reject! { |reporter| reporter.kind_of?(ProgressReporter) }
|
53
126
|
reporter << ::Rails::TestUnitReporter.new(options[:io], options)
|
54
127
|
end
|
128
|
+
|
129
|
+
# Add slowest tests reporter at the end.
|
130
|
+
if options[:profile]
|
131
|
+
reporter << ProfileReporter.new(options[:io], options)
|
132
|
+
end
|
55
133
|
end
|
56
134
|
|
57
135
|
# Backwards compatibility with Rails 5.0 generated plugin test scripts
|
data/lib/rails/all.rb
CHANGED
data/lib/rails/api/task.rb
CHANGED
@@ -10,6 +10,7 @@ module Rails
|
|
10
10
|
"activesupport" => {
|
11
11
|
include: %w(
|
12
12
|
README.rdoc
|
13
|
+
lib/active_support.rb
|
13
14
|
lib/active_support/**/*.rb
|
14
15
|
)
|
15
16
|
},
|
@@ -17,13 +18,16 @@ module Rails
|
|
17
18
|
"activerecord" => {
|
18
19
|
include: %w(
|
19
20
|
README.rdoc
|
21
|
+
lib/active_record.rb
|
20
22
|
lib/active_record/**/*.rb
|
23
|
+
lib/arel.rb
|
21
24
|
)
|
22
25
|
},
|
23
26
|
|
24
27
|
"activemodel" => {
|
25
28
|
include: %w(
|
26
29
|
README.rdoc
|
30
|
+
lib/active_model.rb
|
27
31
|
lib/active_model/**/*.rb
|
28
32
|
)
|
29
33
|
},
|
@@ -32,7 +36,9 @@ module Rails
|
|
32
36
|
include: %w(
|
33
37
|
README.rdoc
|
34
38
|
lib/abstract_controller/**/*.rb
|
39
|
+
lib/action_controller.rb
|
35
40
|
lib/action_controller/**/*.rb
|
41
|
+
lib/action_dispatch.rb
|
36
42
|
lib/action_dispatch/**/*.rb
|
37
43
|
)
|
38
44
|
},
|
@@ -40,6 +46,7 @@ module Rails
|
|
40
46
|
"actionview" => {
|
41
47
|
include: %w(
|
42
48
|
README.rdoc
|
49
|
+
lib/action_view.rb
|
43
50
|
lib/action_view/**/*.rb
|
44
51
|
),
|
45
52
|
exclude: "lib/action_view/vendor/*"
|
@@ -48,6 +55,7 @@ module Rails
|
|
48
55
|
"actionmailer" => {
|
49
56
|
include: %w(
|
50
57
|
README.rdoc
|
58
|
+
lib/action_mailer.rb
|
51
59
|
lib/action_mailer/**/*.rb
|
52
60
|
)
|
53
61
|
},
|
@@ -55,6 +63,7 @@ module Rails
|
|
55
63
|
"activejob" => {
|
56
64
|
include: %w(
|
57
65
|
README.md
|
66
|
+
lib/active_job.rb
|
58
67
|
lib/active_job/**/*.rb
|
59
68
|
)
|
60
69
|
},
|
@@ -62,6 +71,7 @@ module Rails
|
|
62
71
|
"actioncable" => {
|
63
72
|
include: %w(
|
64
73
|
README.md
|
74
|
+
lib/action_cable.rb
|
65
75
|
lib/action_cable/**/*.rb
|
66
76
|
)
|
67
77
|
},
|
@@ -70,6 +80,7 @@ module Rails
|
|
70
80
|
include: %w(
|
71
81
|
README.md
|
72
82
|
app/**/active_storage/**/*.rb
|
83
|
+
lib/active_storage.rb
|
73
84
|
lib/active_storage/**/*.rb
|
74
85
|
)
|
75
86
|
},
|
@@ -78,6 +89,7 @@ module Rails
|
|
78
89
|
include: %w(
|
79
90
|
README.md
|
80
91
|
app/**/action_mailbox/**/*.rb
|
92
|
+
lib/action_mailbox.rb
|
81
93
|
lib/action_mailbox/**/*.rb
|
82
94
|
)
|
83
95
|
},
|
@@ -86,6 +98,7 @@ module Rails
|
|
86
98
|
include: %w(
|
87
99
|
README.md
|
88
100
|
app/**/action_text/**/*.rb
|
101
|
+
lib/action_text.rb
|
89
102
|
lib/action_text/**/*.rb
|
90
103
|
)
|
91
104
|
},
|
@@ -149,8 +162,8 @@ module Rails
|
|
149
162
|
|
150
163
|
# Only generate documentation for files that have been
|
151
164
|
# changed since the API was generated.
|
152
|
-
if Dir.exist?(
|
153
|
-
last_generation = DateTime.rfc2822(File.open("
|
165
|
+
if Dir.exist?(api_dir) && !ENV["ALL"]
|
166
|
+
last_generation = DateTime.rfc2822(File.open("#{api_dir}/created.rid", &:readline))
|
154
167
|
|
155
168
|
rdoc_files.keep_if do |file|
|
156
169
|
File.mtime(file).to_datetime > last_generation
|
@@ -161,13 +174,16 @@ module Rails
|
|
161
174
|
end
|
162
175
|
end
|
163
176
|
|
164
|
-
|
177
|
+
# These variables are used by the sdoc template
|
178
|
+
def setup_horo_variables # :nodoc:
|
165
179
|
ENV["HORO_PROJECT_NAME"] = "Ruby on Rails"
|
166
180
|
ENV["HORO_PROJECT_VERSION"] = rails_version
|
181
|
+
ENV["HORO_BADGE_VERSION"] = badge_version
|
182
|
+
ENV["HORO_CANONICAL_URL"] = canonical_url
|
167
183
|
end
|
168
184
|
|
169
185
|
def api_main
|
170
|
-
component_root_dir("railties") + "/RDOC_MAIN.
|
186
|
+
component_root_dir("railties") + "/RDOC_MAIN.md"
|
171
187
|
end
|
172
188
|
end
|
173
189
|
|
@@ -188,7 +204,15 @@ module Rails
|
|
188
204
|
|
189
205
|
class EdgeTask < RepoTask
|
190
206
|
def rails_version
|
191
|
-
"
|
207
|
+
"main@#{`git rev-parse HEAD`[0, 7]}"
|
208
|
+
end
|
209
|
+
|
210
|
+
def badge_version
|
211
|
+
"edge"
|
212
|
+
end
|
213
|
+
|
214
|
+
def canonical_url
|
215
|
+
"https://edgeapi.rubyonrails.org"
|
192
216
|
end
|
193
217
|
end
|
194
218
|
|
@@ -196,6 +220,14 @@ module Rails
|
|
196
220
|
def rails_version
|
197
221
|
File.read("RAILS_VERSION").strip
|
198
222
|
end
|
223
|
+
|
224
|
+
def badge_version
|
225
|
+
"v#{rails_version}"
|
226
|
+
end
|
227
|
+
|
228
|
+
def canonical_url
|
229
|
+
"https://api.rubyonrails.org/#{badge_version}"
|
230
|
+
end
|
199
231
|
end
|
200
232
|
end
|
201
233
|
end
|
data/lib/rails/app_updater.rb
CHANGED
@@ -13,7 +13,7 @@ module Rails
|
|
13
13
|
def app_generator
|
14
14
|
@app_generator ||= begin
|
15
15
|
gen = Rails::Generators::AppGenerator.new ["rails"], generator_options, destination_root: Rails.root
|
16
|
-
File.exist?(Rails.root.join("config", "application.rb"))
|
16
|
+
gen.send(:valid_const?) unless File.exist?(Rails.root.join("config", "application.rb"))
|
17
17
|
gen
|
18
18
|
end
|
19
19
|
end
|
@@ -21,15 +21,18 @@ module Rails
|
|
21
21
|
private
|
22
22
|
def generator_options
|
23
23
|
options = { api: !!Rails.application.config.api_only, update: true }
|
24
|
-
options[:
|
24
|
+
options[:name] = Rails.application.class.name.chomp("::Application").underscore
|
25
|
+
options[:skip_active_job] = !defined?(ActiveJob::Railtie)
|
25
26
|
options[:skip_active_record] = !defined?(ActiveRecord::Railtie)
|
26
|
-
options[:skip_active_storage] = !defined?(ActiveStorage::Engine)
|
27
|
+
options[:skip_active_storage] = !defined?(ActiveStorage::Engine)
|
27
28
|
options[:skip_action_mailer] = !defined?(ActionMailer::Railtie)
|
29
|
+
options[:skip_action_mailbox] = !defined?(ActionMailbox::Engine)
|
30
|
+
options[:skip_action_text] = !defined?(ActionText::Engine)
|
28
31
|
options[:skip_action_cable] = !defined?(ActionCable::Engine)
|
29
|
-
options[:
|
30
|
-
options[:
|
32
|
+
options[:skip_test] = !defined?(Rails::TestUnitRailtie)
|
33
|
+
options[:skip_system_test] = Rails.application.config.generators.system_tests.nil?
|
34
|
+
options[:skip_asset_pipeline] = !defined?(Sprockets::Railtie) && !defined?(Propshaft::Railtie)
|
31
35
|
options[:skip_bootsnap] = !defined?(Bootsnap)
|
32
|
-
options[:skip_spring] = !defined?(Spring)
|
33
36
|
options
|
34
37
|
end
|
35
38
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "fileutils"
|
4
|
+
require "set"
|
4
5
|
require "active_support/notifications"
|
5
6
|
require "active_support/dependencies"
|
6
7
|
require "active_support/descendants_tracker"
|
@@ -19,22 +20,26 @@ module Rails
|
|
19
20
|
|
20
21
|
initializer :set_eager_load, group: :all do
|
21
22
|
if config.eager_load.nil?
|
22
|
-
warn
|
23
|
-
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
|
23
|
+
warn <<~INFO
|
24
|
+
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
26
|
+
* development - set it to false
|
27
|
+
* test - set it to false (unless you use a tool that preloads your test environment)
|
28
|
+
* production - set it to true
|
28
29
|
|
29
|
-
INFO
|
30
|
-
config.eager_load = config.
|
30
|
+
INFO
|
31
|
+
config.eager_load = !config.reloading_enabled?
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
35
|
# Initialize the logger early in the stack in case we need to log some deprecation.
|
35
36
|
initializer :initialize_logger, group: :all do
|
36
37
|
Rails.logger ||= config.logger || begin
|
37
|
-
logger =
|
38
|
+
logger = if config.log_file_size
|
39
|
+
ActiveSupport::Logger.new(config.default_log_file, 1, config.log_file_size)
|
40
|
+
else
|
41
|
+
ActiveSupport::Logger.new(config.default_log_file)
|
42
|
+
end
|
38
43
|
logger.formatter = config.log_formatter
|
39
44
|
logger = ActiveSupport::TaggedLogging.new(logger)
|
40
45
|
logger
|
@@ -44,19 +49,35 @@ INFO
|
|
44
49
|
logger.level = ActiveSupport::Logger::WARN
|
45
50
|
logger.warn(
|
46
51
|
"Rails Error: Unable to access log file. Please ensure that #{path} exists and is writable " \
|
47
|
-
"(
|
52
|
+
"(i.e. make it writable for user and group: chmod 0664 #{path}). " \
|
48
53
|
"The log level has been raised to WARN and the output directed to STDERR until the problem is fixed."
|
49
54
|
)
|
50
55
|
logger
|
51
56
|
end
|
52
57
|
|
53
|
-
Rails.logger.
|
58
|
+
if Rails.logger.is_a?(ActiveSupport::BroadcastLogger)
|
59
|
+
if config.broadcast_log_level
|
60
|
+
Rails.logger.level = ActiveSupport::Logger.const_get(config.broadcast_log_level.to_s.upcase)
|
61
|
+
end
|
62
|
+
else
|
63
|
+
Rails.logger.level = ActiveSupport::Logger.const_get(config.log_level.to_s.upcase)
|
64
|
+
broadcast_logger = ActiveSupport::BroadcastLogger.new(Rails.logger)
|
65
|
+
broadcast_logger.formatter = Rails.logger.formatter
|
66
|
+
Rails.logger = broadcast_logger
|
67
|
+
end
|
68
|
+
|
69
|
+
unless config.consider_all_requests_local
|
70
|
+
Rails.error.logger = Rails.logger
|
71
|
+
end
|
54
72
|
end
|
55
73
|
|
56
74
|
# Initialize cache early in the stack so railties can make use of it.
|
57
75
|
initializer :initialize_cache, group: :all do
|
76
|
+
cache_format_version = config.active_support.delete(:cache_format_version)
|
77
|
+
ActiveSupport.cache_format_version = cache_format_version if cache_format_version
|
78
|
+
|
58
79
|
unless Rails.cache
|
59
|
-
Rails.cache = ActiveSupport::Cache.lookup_store(config.cache_store)
|
80
|
+
Rails.cache = ActiveSupport::Cache.lookup_store(*config.cache_store)
|
60
81
|
|
61
82
|
if Rails.cache.respond_to?(:middleware)
|
62
83
|
config.middleware.insert_before(::Rack::Runtime, Rails.cache.middleware)
|
@@ -64,9 +85,26 @@ INFO
|
|
64
85
|
end
|
65
86
|
end
|
66
87
|
|
67
|
-
#
|
68
|
-
|
69
|
-
|
88
|
+
# We setup the once autoloader this early so that engines and applications
|
89
|
+
# are able to autoload from these paths during initialization.
|
90
|
+
initializer :setup_once_autoloader, after: :set_eager_load_paths, before: :bootstrap_hook do
|
91
|
+
autoloader = Rails.autoloaders.once
|
92
|
+
|
93
|
+
# Normally empty, but if the user already defined some, we won't
|
94
|
+
# override them. Important if there are custom namespaces associated.
|
95
|
+
already_configured_dirs = Set.new(autoloader.dirs)
|
96
|
+
|
97
|
+
ActiveSupport::Dependencies.autoload_once_paths.freeze
|
98
|
+
ActiveSupport::Dependencies.autoload_once_paths.uniq.each do |path|
|
99
|
+
# Zeitwerk only accepts existing directories in `push_dir`.
|
100
|
+
next unless File.directory?(path)
|
101
|
+
next if already_configured_dirs.member?(path.to_s)
|
102
|
+
|
103
|
+
autoloader.push_dir(path)
|
104
|
+
autoloader.do_not_eager_load(path) unless ActiveSupport::Dependencies.eager_load?(path)
|
105
|
+
end
|
106
|
+
|
107
|
+
autoloader.setup
|
70
108
|
end
|
71
109
|
|
72
110
|
initializer :bootstrap_hook, group: :all do |app|
|