Docs: fix misspel on association_basics.md [ci-skip] (#47958)
* Docs: fix misspel on association_basics.md [ci-skip] * Fix the same misspell on has_one_associations_test.rb
This commit is contained in:
parent
0b5505e826
commit
950ffb93d7
@ -392,7 +392,7 @@ def test_reload_association_with_query_cache
|
||||
ActiveRecord::Base.connection.disable_query_cache!
|
||||
end
|
||||
|
||||
def test_reset_assocation
|
||||
def test_reset_association
|
||||
odegy = companies(:odegy)
|
||||
|
||||
assert_equal 53, odegy.account.credit_limit
|
||||
|
@ -1328,7 +1328,7 @@ When you declare a `has_one` association, the declaring class automatically gain
|
||||
* `create_association(attributes = {})`
|
||||
* `create_association!(attributes = {})`
|
||||
* `reload_association`
|
||||
* `reset_assocation`
|
||||
* `reset_association`
|
||||
|
||||
In all of these methods, `association` is replaced with the symbol passed as the first argument to `has_one`. For example, given the declaration:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user