Skip to content

Comments

Add .find_by! method#28

Merged
sidane merged 1 commit intomainfrom
nm-add-find-by-bang-method
Jun 20, 2025
Merged

Add .find_by! method#28
sidane merged 1 commit intomainfrom
nm-add-find-by-bang-method

Conversation

@sidane
Copy link
Collaborator

@sidane sidane commented Mar 28, 2025

Behaves the same as .find_by, accepting one or more attributes to find a matching record by. The key difference is the method raises a StaticAssociation::RecordNotFound exception if no record is found.

Behaves the same as `.find_by`, accepting one or more attributes to find
a matching record by its ID. The only difference is the method raises a
`StaticAssociation::RecordNotFound` exception if no record is found.
@sidane sidane force-pushed the nm-add-find-by-bang-method branch from 4b5d52c to 14c6941 Compare June 20, 2025 09:54
@sidane sidane merged commit 7910d90 into main Jun 20, 2025
10 checks passed
@sidane sidane deleted the nm-add-find-by-bang-method branch June 20, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant