Merge pull request #42337 from AdityaBhutani/fix-and-improve-guide-5-0-release-notes

[ci skip] Fixed typos and grammatical errors
This commit is contained in:
Zachary Scott 2021-06-01 07:44:49 +09:00 committed by GitHub
commit 43a0e55c92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ information.
Rails can now be used to create slimmed down API only applications.
This is useful for creating and serving APIs similar to [Twitter](https://dev.twitter.com) or [GitHub](https://developer.github.com) API,
that can be used to serve public facing, as well as, for custom applications.
that can be used to serve public-facing, as well as, for custom applications.
You can generate a new api Rails app using:
@ -86,7 +86,7 @@ information.
Defines an attribute with a type on a model. It will override the type of existing attributes if needed.
This allows control over how values are converted to and from SQL when assigned to a model.
It also changes the behavior of values passed to `ActiveRecord::Base.where`, which lets use our domain objects across much of Active Record,
It also changes the behavior of values passed to `ActiveRecord::Base.where`, which let's use our domain objects across much of Active Record,
without having to rely on implementation details or monkey patching.
Some things that you can achieve with this:
@ -149,7 +149,7 @@ This gives the objects ability to specify, how to convert values when performing
**Dirty Tracking:**
The type of an attribute is given the opportunity to change how dirty
The type of an attribute is allowed to change how dirty
tracking is performed.
See its
@ -162,7 +162,7 @@ for a detailed write up.
A new test runner has been introduced to enhance the capabilities of running tests from Rails.
To use this test runner simply type `bin/rails test`.
Test Runner is inspired from `RSpec`, `minitest-reporters`, `maxitest` and others.
Test Runner is inspired by `RSpec`, `minitest-reporters`, `maxitest` and others.
It includes some of these notable advancements:
- Run a single test using line number of test.
@ -397,7 +397,7 @@ Please refer to the [Changelog][action-pack] for detailed changes.
* Added the ability to override default form builder for a controller.
([Pull Request](https://github.com/rails/rails/pull/19736))
* Added support for API only apps.
* Added support for API-only apps.
`ActionController::API` is added as a replacement of
`ActionController::Base` for this kind of applications.
([Pull Request](https://github.com/rails/rails/pull/19832))