Skip to content

Safe spawn and where.not#344

Merged
kbrock merged 1 commit into
active-hash:masterfrom
kbrock:satan_spawn
May 16, 2026
Merged

Safe spawn and where.not#344
kbrock merged 1 commit into
active-hash:masterfrom
kbrock:satan_spawn

Conversation

@kbrock
Copy link
Copy Markdown
Collaborator

@kbrock kbrock commented Mar 31, 2026

  • where.not chains no longer can get corrupted from simple searches.
  • find_by no longer mutates the relation.

Fixes #338

- where.not chains no longer can get corrupted from simple searches.
- find_by no longer mutates the relation.

Fixes active-hash#338

Thanks Claude for the assist
@kbrock
Copy link
Copy Markdown
Collaborator Author

kbrock commented Mar 31, 2026

@flavorjones - Could you review?

@kbrock kbrock requested a review from zilkey May 2, 2026 22:53
Copy link
Copy Markdown
Collaborator

@flavorjones flavorjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kbrock Sorry for the delay in reviewing! Looks good.

@kbrock kbrock merged commit bd9bb2a into active-hash:master May 16, 2026
20 checks passed
@kbrock kbrock deleted the satan_spawn branch May 16, 2026 20:28
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.

ActiveHash::Relation#spawn passes conditions by reference, causing original Relation to be mutated when calling find_by multiple times

2 participants