Commit Graph

89 Commits

Author SHA1 Message Date
Xavier Noria
84a5bee3e8 autoloading guide revamped for Zeitwerk mode [skip ci]
This is a first draft only, needs polishing for final.
2019-07-09 19:57:22 +02:00
Shailesh Kalamkar
70192cec42 [ci skip] Minor documentation fixes for consistency 2019-03-09 12:15:00 +05:30
Xavier Noria
c03bba4f1f trace autoloads, and document hints for troubleshooting
Closes #32885.
2018-09-07 23:32:54 +02:00
Matthew Draper
ec387c6dd9
Merge pull request #33229 from albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails
Prefer rails command over bin/rails
2018-07-25 04:10:29 +09:30
Paul McMahon
7b9c19d94b Rails guides are now served over https
http links will be redirected to the https version, but still better to
just directly link to the https version.
2018-07-24 11:29:31 +09:00
Alberto Almagro
49e6df3529 Improve text readability 2018-07-06 22:46:54 +02:00
Alberto Almagro
40b209db53 Recommend use of rails over bin/rails
As discussed in #33203 rails command already looks for, and runs,
bin/rails if it is present.

We were mixing recommendations within guides and USAGE guidelines,
in some files we recommended using rails, in others bin/rails and
in some cases we even had both options mixed together.
2018-07-06 22:46:35 +02:00
Xavier Noria
5c7656d9a5 restores original intention in constants guide, reworded [ci skip]
Once all technicalities have been introduced, the purpose of this
paragraph is to precisely unroll expressions like "the String class".
That way, the reader is forced to clearly separate concepts that Ruby
programmers often have kind of blurred:

  * Constants are storage, like variables.

  * Ruby does not have syntax for class or module names.

  * `String` is a regular constant that holds a value. In this case, the
    value happens to be a class object.

  * Constants are stored in class and module objects. In the case of
    `String`, the holder is the class object stored in the `Object`
    constant.

Understanding that paragraph the way is written is important to
accomplish this objective.

References #32818.
2018-05-06 14:06:16 +02:00
Santosh Wadghule
8831155f64
Remove confusion in the sentence [ci skip] 2018-05-04 17:19:35 +05:30
Yauheni Dakuka
27e5c76a77 Remove parentheses [ci skip] 2018-02-12 09:31:24 +03:00
Tim Diggins
053e3fa1e5 Correct capitalization of "Rails" in the guide text.
correction to #31755 as per https://github.com/rails/rails/pull/31755#discussion_r165819798
2018-02-03 17:35:02 +00:00
Sam Yamashita
ac3df40995 Fix typo 2018-01-31 13:52:56 +09:00
Tim Diggins
f349ffac27 Clarify autoload_paths and eager_load in guides per current usage. [CI SKIP] 2018-01-21 21:22:00 +00:00
Xavier Noria
a235b9f9d1 updates autoloading guide for Ruby 2.5 [ci skip] 2017-11-01 11:54:23 +01:00
Yauheni Dakuka
c9527652c7 Fix quotes [ci skip] 2017-09-18 09:38:47 +03:00
Yoshiyuki Hirano
102a765812 Update result of autoload_paths in Autoloading and Reloading Constants guide [ci skip] 2017-08-21 09:03:28 +09:00
Kevin Reintjes
b4038ab37a Correct Autoloading and STI guide (issue #26994) 2017-04-06 10:30:33 +02:00
Xavier Noria
28a7c98fe6 autoloading guide: specify autoload paths are set when the app boots [ci skip] 2016-05-26 07:42:31 +02:00
Tom Copeland
610de88b1c Fix small typos [ci skip] 2016-04-20 20:19:11 -04:00
Genadi Samokovarov
c29fbd3c7a ApplicationRecord documentation pass
This is a pass over the documentation which fills the missing gaps of
`ApplicationRecord`.

[ci skip]
2015-12-17 11:56:35 +01:00
pavlos
6861a1d944 Update autoloading_and_reloading_constants.md
Fixed a typo
2015-12-01 13:24:45 -08:00
Rémy Coutable
202c5c6395 Fix typo: "in" should be "is" 2015-11-11 09:51:37 +01:00
Mehmet Emin İNAÇ
45747a5572 Fix the wrong documentation about config.autoload_paths [ci skip]
config.autoload_paths is not changeable from environment specific configuration files.
2015-04-13 11:56:50 +03:00
Robin Dupret
d969405acd Some documentation edits [ci skip]
* Fix a few typos
* Wrap some lines around 80 chars
* Rephrase some statements
2015-03-05 14:18:09 +01:00
Xavier Noria
9814eb6427 constants guide: adds a step to a resolution algorithm
Not sure how this one slipped, maybe deleted by accident while editing or
something. Anyway, fixed.
2015-02-18 12:37:19 +01:00
jafrog
dd0cae3138 Fix a typo in autoloading doc and note on autoload_paths [ci skip] 2015-02-02 22:00:18 +00:00
Alex Johnson
dc6f5cb0dd Fix grammar in Qualified Constants section
New wording is based on the "cref" sentence earlier in the section.

[ci skip]
2015-01-29 16:46:44 -08:00
yui-knk
419d259f63 [ci skip] Fix what is pushed to nesting about eval family 2015-01-24 22:50:08 +09:00
Xavier Noria
4e02dcc252 constants guide: make assumption explicit in an example [closes #18465] [ci skip] 2015-01-23 11:21:42 +01:00
Santiago Pastorino
8a87ebfd8f Merge pull request #18576 from yui-knk/fix/autoload4
[ci skip] Move a introduction of `Module.nesting`
2015-01-18 12:01:54 -02:00
yui-knk
75b382301d [ci skip] Move a introduction of Module.nesting
Move a introduction of `Module.nesting` to the beginning of sentence.
This change will help reader to try to dump `nesting`.
2015-01-18 11:43:03 +09:00
yui-knk
51f97d02cc [ci skip] fix positions of parentheses 2015-01-18 11:17:39 +09:00
yui-knk
03d049cca2 [ci skip] Change to the passive voice 2015-01-17 23:52:53 +09:00
Xavier Noria
7ba24831d7 Merge pull request #18503 from vipulnsward/guides-in-on
Changed `IN` to `ON` in markdown renderer condition
2015-01-14 11:35:34 +01:00
Vipul A M
5cfaf5a46e - Changed IN to ON in markdown renderer condition
- Changed `IN` to `ON` in all note sentences in guides.
2015-01-14 11:52:13 +05:30
yuuji.yaginuma
fe9f8fb56a fix link in autoloading guide [ci skip] 2015-01-14 13:22:51 +09:00
Robin Dupret
ef7e440c97 Fix a few typos [ci skip] 2014-12-24 19:56:00 +01:00
Xavier Noria
7702974281 warn about reading guides in GitHub
References #18148.
2014-12-23 23:32:50 +01:00
Vijay Dev
34cd7e2b1a Renaming the autoloading guide [ci skip]
The term 'constant autoloading' can be mistakenly
construed as 'constantly autoloading'.
2014-12-20 15:46:15 +00:00