Skip to content

Comments

Set Boop number before validation#287

Merged
jonallured merged 1 commit intomainfrom
set-boop-number-before-validation
Feb 13, 2026
Merged

Set Boop number before validation#287
jonallured merged 1 commit intomainfrom
set-boop-number-before-validation

Conversation

@jonallured
Copy link
Owner

The Boop.number field is meant to just be like an auto-incrementing integer but I didn't make it easy enough to do this. This PR adds a before_validation callback in the model that will do it while still allowing for it to be set outside these bounds for whatever reason. This seems better and now allows for an API call to create a Boop with only the display_type specified. 😎

@jonallured jonallured enabled auto-merge (rebase) February 13, 2026 14:17
@jonallured jonallured force-pushed the set-boop-number-before-validation branch from 896e7be to 2c2d1eb Compare February 13, 2026 14:21
@jonallured jonallured merged commit 11b9b2e into main Feb 13, 2026
1 check passed
@jonallured jonallured deleted the set-boop-number-before-validation branch February 13, 2026 14:22
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