mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 03:30:16 -06:00
fix account sign up
This commit is contained in:
@@ -85,7 +85,7 @@ module Users
|
||||
user.save!
|
||||
end
|
||||
|
||||
if user.owned_accounts.zero?
|
||||
if user.owned_accounts.size.zero?
|
||||
account = Account.create!(
|
||||
owner: user,
|
||||
name: "#{auth.info.name || auth.info.email.split("@").first}'s Account"
|
||||
|
||||
Reference in New Issue
Block a user