Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grammar for config.enable_dependency_loading docs #25476

Merged
merged 1 commit into from
Jun 24, 2016

Conversation

maclover7
Copy link
Contributor

[ci skip]

r? @rafaelfranca

@@ -94,7 +94,7 @@ application. Accepts a valid week day symbol (e.g. `:monday`).

* `config.eager_load_paths` accepts an array of paths from which Rails will eager load on boot if cache classes is enabled. Defaults to every folder in the `app` directory of the application.

* `config.enable_dependency_loading` when true, enable the autoload loading behavior even if the application is eager loaded and have `cache_classes` as true. Default to false.
* `config.enable_dependency_loading` enables autoload loading, even if the application is eager loaded and `config.cache_classes` is set as true. Defaults to false.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should maintain the "when true" to indicate when this behaviour occurs

@maclover7
Copy link
Contributor Author

updated @vipulnsward, okay to 🚢?

@@ -94,7 +94,7 @@ application. Accepts a valid week day symbol (e.g. `:monday`).

* `config.eager_load_paths` accepts an array of paths from which Rails will eager load on boot if cache classes is enabled. Defaults to every folder in the `app` directory of the application.

* `config.enable_dependency_loading` when true, enable the autoload loading behavior even if the application is eager loaded and have `cache_classes` as true. Default to false.
* `config.enable_dependency_loading` -- when true, enables autoload loading, even if the application is eager loaded and `config.cache_classes` is set as true. Defaults to false.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the -- used elsewhere in the file? If not, I'd remove them for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Varies a little bit by each section of this guide, the initializer section uses : instead of a double dash, I can change to that, if you'd like :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the only instance of --, I'd go with one of the other options :)

@maclover7
Copy link
Contributor Author

updated @kaspth :)

@kaspth
Copy link
Contributor

kaspth commented Jun 24, 2016

🚢

@maclover7
Copy link
Contributor Author

👍 thanks for the review, all! <3

@maclover7 maclover7 merged commit 40bf7a5 into rails:master Jun 24, 2016
@maclover7 maclover7 deleted the jm-docs-dep-loading branch June 24, 2016 21:43
@kaspth
Copy link
Contributor

kaspth commented Jun 24, 2016

No problem ❤️

Should this be backported?

@maclover7
Copy link
Contributor Author

👍 good idea, since the original commit is in 5-0-stable and 5-0-0. Will open up PRs.

@maclover7
Copy link
Contributor Author

Opened #25518 and #25519.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants