Skip to content

[ci skip] Undocumented - validations enabled by autosave

Rodrigo Muino Tomonari requested to merge github/fork/sherrimitchell/main into main

Created by: sherrimitchell

Motivation / Background

Fixes #50807

As described in Issue #50807, validations are enabled by default when the autosave option is set to true. Currently, that behavior is not documented for the has_one or belongs_to associations.

Detail

To resolve this issue, the API documentation has been updated to document the validation behavior when the autosave: true option is set in Activerecord::Associations for the has_one or belongs_to associations.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

Merge request reports