1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Fix some typos, normalize sentence.

Follow up of #16722.

https://github.com/rails/rails/pull/16722

also normalize all instance gained methods’ sentence.
This commit is contained in:
Juanito Fatas 2014-09-08 03:29:48 +08:00
parent 72e42d2521
commit 29366cdad7

View file

@ -756,7 +756,7 @@ class Order < ActiveRecord::Base
end
```
Each instance of the order model will have these methods:
Each instance of the `Order` model will have these methods:
```ruby
customer
@ -1342,16 +1342,16 @@ class Customer < ActiveRecord::Base
end
```
Each instance of the customer model will have these methods:
Each instance of the `Customer` model will have these methods:
```ruby
orders(force_reload = false)
orders<<(object, ...)
orders.delete(object, ...)
orders.destroy(object, ...)
orders=objects
orders=(objects)
order_ids
order_ids=ids
order_ids=(ids)
orders.clear
orders.empty?
orders.size
@ -1831,16 +1831,16 @@ class Part < ActiveRecord::Base
end
```
Each instance of the part model will have these methods:
Each instance of the `Part` model will have these methods:
```ruby
assemblies(force_reload = false)
assemblies<<(object, ...)
assemblies.delete(object, ...)
assemblies.destroy(object, ...)
assemblies=objects
assemblies=(objects)
assembly_ids
assembly_ids=ids
assembly_ids=(ids)
assemblies.clear
assemblies.empty?
assemblies.size