未验证 提交 4b2bbcf8 编写于 作者: M Matthew Draper 提交者: GitHub

Merge pull request #31232 from weedySeaDragon/engines-guide-copyediting--neutral-copyediting-171126

minor Engines guide copyedits: neutral language,  verb tense, comma splice [ci skip]
......@@ -921,7 +921,7 @@ engine:
mattr_accessor :author_class
```
This method works like its brothers, `attr_accessor` and `cattr_accessor`, but
This method works like its siblings, `attr_accessor` and `cattr_accessor`, but
provides a setter and getter method on the module with the specified name. To
use it, it must be referenced using `Blorgh.author_class`.
......@@ -982,7 +982,7 @@ Blorgh.author_class = "User"
WARNING: It's very important here to use the `String` version of the class,
rather than the class itself. If you were to use the class, Rails would attempt
to load that class and then reference the related table. This could lead to
problems if the table wasn't already existing. Therefore, a `String` should be
problems if the table didn't already exist. Therefore, a `String` should be
used and then converted to a class using `constantize` in the engine later on.
Go ahead and try to create a new article. You will see that it works exactly in the
......@@ -1514,7 +1514,7 @@ To hook into the initialization process of one of the following classes use the
## Configuration hooks
These are the available configuration hooks. They do not hook into any particular framework, instead they run in context of the entire application.
These are the available configuration hooks. They do not hook into any particular framework, but instead they run in context of the entire application.
| Hook | Use Case |
| ---------------------- | ------------------------------------------------------------------------------------- |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册