Skip to content

Commit 950ffb9

Browse files
authored
Docs: fix misspel on association_basics.md [ci-skip] (rails#47958)
* Docs: fix misspel on association_basics.md [ci-skip] * Fix the same misspell on has_one_associations_test.rb
1 parent 0b5505e commit 950ffb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activerecord/test/cases/associations/has_one_associations_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def test_reload_association_with_query_cache
392392
ActiveRecord::Base.connection.disable_query_cache!
393393
end
394394

395-
def test_reset_assocation
395+
def test_reset_association
396396
odegy = companies(:odegy)
397397

398398
assert_equal 53, odegy.account.credit_limit

guides/source/association_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ When you declare a `has_one` association, the declaring class automatically gain
13281328
* `create_association(attributes = {})`
13291329
* `create_association!(attributes = {})`
13301330
* `reload_association`
1331-
* `reset_assocation`
1331+
* `reset_association`
13321332

13331333
In all of these methods, `association` is replaced with the symbol passed as the first argument to `has_one`. For example, given the declaration:
13341334

0 commit comments

Comments
 (0)