Skip to content

Commit f8e45f9

Browse files
authored
Merge pull request rails#42485 from AdityaBhutani/correct-all-x-based-occurances
[ci skip] Fixing all <x> based occurances to <x>-based
2 parents c204eec + 32af6ad commit f8e45f9

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

actionpack/lib/action_dispatch/middleware/cookies.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def use_cookies_with_metadata
103103
# # This cookie will be deleted when the user's browser is closed.
104104
# cookies[:user_name] = "david"
105105
#
106-
# # Cookie values are String based. Other data types need to be serialized.
106+
# # Cookie values are String-based. Other data types need to be serialized.
107107
# cookies[:lat_lon] = JSON.generate([47.68, -122.37])
108108
#
109109
# # Sets a cookie that expires in 1 hour.

actionview/lib/action_view/helpers/date_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def distance_of_time_in_words(from_time, to_time = 0, options = {})
140140
minute_offset_for_leap_year = leap_years * 1440
141141
# Discount the leap year days when calculating year distance.
142142
# e.g. if there are 20 leap year days between 2 dates having the same day
143-
# and month then the based on 365 days calculation
143+
# and month then based on 365 days calculation
144144
# the distance in years will come out to over 80 years when in written
145145
# English it would read better as about 80 years.
146146
minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year

activemodel/lib/active_model/translation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module ActiveModel
1717
#
1818
# This also provides the required class methods for hooking into the
1919
# Rails internationalization API, including being able to define a
20-
# class based +i18n_scope+ and +lookup_ancestors+ to find translations in
20+
# class-based +i18n_scope+ and +lookup_ancestors+ to find translations in
2121
# parent classes.
2222
module Translation
2323
include ActiveModel::Naming

activerecord/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
*Eileen M. Uchitelle*
518518

519519
* `ActiveRecord::Calculations.calculate` called with `:average`
520-
(aliased as `ActiveRecord::Calculations.average`) will now use column based
520+
(aliased as `ActiveRecord::Calculations.average`) will now use column-based
521521
type casting. This means that floating-point number columns will now be
522522
aggregated as `Float` and decimal columns will be aggregated as `BigDecimal`.
523523

guides/source/active_model_basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ irb> person.to_param
123123

124124
An object becomes dirty when it has gone through one or more changes to its
125125
attributes and has not been saved. `ActiveModel::Dirty` gives the ability to
126-
check whether an object has been changed or not. It also has attribute based
126+
check whether an object has been changed or not. It also has attribute-based
127127
accessor methods. Let's consider a Person class with attributes `first_name`
128128
and `last_name`:
129129

@@ -185,7 +185,7 @@ irb> person.changes
185185
=> {"first_name"=>[nil, "First Name"]}
186186
```
187187

188-
#### Attribute based accessor methods
188+
#### Attribute-based accessor methods
189189

190190
Track whether the particular attribute has been changed or not.
191191

guides/source/asset_pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ asset for up to a year. Since most CDNs also cache headers of the request, this
10231023
the browser then knows that it can store this asset for a very long time before
10241024
needing to re-request it.
10251025

1026-
##### CDNs and URL based Cache Invalidation
1026+
##### CDNs and URL-based Cache Invalidation
10271027

10281028
Most CDNs will cache contents of an asset based on the complete URL. This means
10291029
that a request to

guides/source/upgrading_ruby_on_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ this gem such as `whitelist_attributes` or `mass_assignment_sanitizer` options.
19051905

19061906
* Rails 4.0 has deprecated `ActiveRecord::TestCase` in favor of `ActiveSupport::TestCase`.
19071907

1908-
* Rails 4.0 has deprecated the old-style hash based finder API. This means that
1908+
* Rails 4.0 has deprecated the old-style hash-based finder API. This means that
19091909
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')`
19101910

19111911
* All dynamic methods except for `find_by_...` and `find_by_...!` are deprecated.

0 commit comments

Comments
 (0)