Skip to content

Commit 5eb9c73

Browse files
committed
Fix a typo for Rails/BelongsTo
This PR fixes a typo for `Rails/BelongsTo`. ```console % misspell -i enviromnent . lib/rubocop/cop/rails/belongs_to.rb:22:53: "overriden" is a misspelling of "overridden" manual/cops_rails.md:187:45: "overriden" is a misspelling of "overridden" ```
1 parent d558b3c commit 5eb9c73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubocop/cop/rails/belongs_to.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Rails
1919
# In the case that the developer is doing `required: false`, we
2020
# definitely want to autocorrect to `optional: true`.
2121
#
22-
# However, without knowing whether they've set overriden the default
22+
# However, without knowing whether they've set overridden the default
2323
# value of `config.active_record.belongs_to_required_by_default`, we
2424
# can't say whether it's safe to remove `required: true` or whether we
2525
# should replace it with `optional: false` (or, similarly, remove a

manual/cops_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ From the release notes:
184184
In the case that the developer is doing `required: false`, we
185185
definitely want to autocorrect to `optional: true`.
186186

187-
However, without knowing whether they've set overriden the default
187+
However, without knowing whether they've set overridden the default
188188
value of `config.active_record.belongs_to_required_by_default`, we
189189
can't say whether it's safe to remove `required: true` or whether we
190190
should replace it with `optional: false` (or, similarly, remove a

0 commit comments

Comments
 (0)