[ci skip] Fixed typos and grammatical errors

This commit is contained in:
Aditya Bhutani 2021-06-01 03:27:58 +05:30
parent 198946b88f
commit f5d25cc372
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. 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, 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: 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. 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. 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. without having to rely on implementation details or monkey patching.
Some things that you can achieve with this: 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:** **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. tracking is performed.
See its 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. 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`. 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: It includes some of these notable advancements:
- Run a single test using line number of test. - 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. * Added the ability to override default form builder for a controller.
([Pull Request](https://github.com/rails/rails/pull/19736)) ([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::API` is added as a replacement of
`ActionController::Base` for this kind of applications. `ActionController::Base` for this kind of applications.
([Pull Request](https://github.com/rails/rails/pull/19832)) ([Pull Request](https://github.com/rails/rails/pull/19832))