1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-31 02:59:39 +02:00

Rubocop updates

This commit is contained in:
Zach Gollwitzer 2024-08-22 18:21:22 -04:00
parent 5ea2fd5a23
commit 05b0b8f3a4
22 changed files with 477 additions and 476 deletions

View file

@ -16,10 +16,10 @@ class InviteCode < ApplicationRecord
private
def generate_token
loop do
self.token = SecureRandom.hex(4)
break token unless self.class.exists?(token: token)
def generate_token
loop do
self.token = SecureRandom.hex(4)
break token unless self.class.exists?(token: token)
end
end
end
end