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

Merge pull request #42485 from AdityaBhutani/correct-all-x-based-occurances

[ci skip] Fixing all <x> based occurances to <x>-based
This commit is contained in:
Zachary Scott 2021-06-17 08:33:54 +09:00 committed by GitHub
commit f8e45f9c6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View file

@ -103,7 +103,7 @@ module ActionDispatch
# # This cookie will be deleted when the user's browser is closed.
# cookies[:user_name] = "david"
#
# # Cookie values are String based. Other data types need to be serialized.
# # Cookie values are String-based. Other data types need to be serialized.
# cookies[:lat_lon] = JSON.generate([47.68, -122.37])
#
# # Sets a cookie that expires in 1 hour.

View file

@ -140,7 +140,7 @@ module ActionView
minute_offset_for_leap_year = leap_years * 1440
# Discount the leap year days when calculating year distance.
# e.g. if there are 20 leap year days between 2 dates having the same day
# and month then the based on 365 days calculation
# and month then based on 365 days calculation
# the distance in years will come out to over 80 years when in written
# English it would read better as about 80 years.
minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year

View file

@ -17,7 +17,7 @@ module ActiveModel
#
# This also provides the required class methods for hooking into the
# Rails internationalization API, including being able to define a
# class based +i18n_scope+ and +lookup_ancestors+ to find translations in
# class-based +i18n_scope+ and +lookup_ancestors+ to find translations in
# parent classes.
module Translation
include ActiveModel::Naming

View file

@ -517,7 +517,7 @@
*Eileen M. Uchitelle*
* `ActiveRecord::Calculations.calculate` called with `:average`
(aliased as `ActiveRecord::Calculations.average`) will now use column based
(aliased as `ActiveRecord::Calculations.average`) will now use column-based
type casting. This means that floating-point number columns will now be
aggregated as `Float` and decimal columns will be aggregated as `BigDecimal`.

View file

@ -123,7 +123,7 @@ irb> person.to_param
An object becomes dirty when it has gone through one or more changes to its
attributes and has not been saved. `ActiveModel::Dirty` gives the ability to
check whether an object has been changed or not. It also has attribute based
check whether an object has been changed or not. It also has attribute-based
accessor methods. Let's consider a Person class with attributes `first_name`
and `last_name`:
@ -185,7 +185,7 @@ irb> person.changes
=> {"first_name"=>[nil, "First Name"]}
```
#### Attribute based accessor methods
#### Attribute-based accessor methods
Track whether the particular attribute has been changed or not.

View file

@ -1023,7 +1023,7 @@ asset for up to a year. Since most CDNs also cache headers of the request, this
the browser then knows that it can store this asset for a very long time before
needing to re-request it.
##### CDNs and URL based Cache Invalidation
##### CDNs and URL-based Cache Invalidation
Most CDNs will cache contents of an asset based on the complete URL. This means
that a request to

View file

@ -1905,7 +1905,7 @@ this gem such as `whitelist_attributes` or `mass_assignment_sanitizer` options.
* Rails 4.0 has deprecated `ActiveRecord::TestCase` in favor of `ActiveSupport::TestCase`.
* Rails 4.0 has deprecated the old-style hash based finder API. This means that
* Rails 4.0 has deprecated the old-style hash-based finder API. This means that
methods which previously accepted "finder options" no longer do. For example, `Book.find(:all, conditions: { name: '1984' })` has been deprecated in favor of `Book.where(name: '1984')`
* All dynamic methods except for `find_by_...` and `find_by_...!` are deprecated.