feat(cops): clean rubocop run
1. ignoring one file because it's an intentional vuln 2. made a few small semantic changes, but verified that they're equivalent.
This commit is contained in:
+2
-3
@@ -74,8 +74,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def generate_token(column)
|
||||
begin
|
||||
self[column] = Encryption.encrypt_sensitive_value(self.user_id)
|
||||
end while User.exists?(column => self[column])
|
||||
self[column] = Encryption.encrypt_sensitive_value(self.user_id)
|
||||
generate_token(column) if User.exists?(column => self[column])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user