Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust usage of
has_secure_token
without a token attr
The behaviour of this method was changed in Rails 7.1, and now it'll search for a `token` attr in the initialization of the record instead of the creation. To stay with the same behaviour as before it's necessary to pass a new argument `on: : create` to the method.
- Loading branch information