Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.2 の association_basics で不要な A をカット #1771

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guides/source/ja/association_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ irb> raise_validation_error: Validation failed: Name can't be blank (ActiveRecor
@book.author_previously_changed? # => true
```

NOTE: A`model.association_changed?`と`model.association.changed?`を取り違えないようご注意ください。前者の`model.association_changed?`は、その関連付けが新しいレコードで置き換えられたかどうかをチェックしますが、後者の`model.association.changed?`は関連付けの「属性」が変更されたかどうかをチェックします。
NOTE: `model.association_changed?`と`model.association.changed?`を取り違えないようご注意ください。前者の`model.association_changed?`は、その関連付けが新しいレコードで置き換えられたかどうかをチェックしますが、後者の`model.association.changed?`は関連付けの「属性」が変更されたかどうかをチェックします。

##### 既存の関連付けが存在するかどうかをチェックする

Expand Down