Skip to content

Commit

Permalink
Merge pull request #187 from siroemk/fix-from_omniauth
Browse files Browse the repository at this point in the history
from_omniauthメソッドを修正した
  • Loading branch information
siroemk authored Nov 15, 2023
2 parents 32a7ccc + 4825063 commit d99ea2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.from_omniauth(auth_hash)
provider = auth_hash[:provider]
uid = auth_hash[:uid]
name = auth_hash[:info][:name]
User.where(provider:, uid:).first_or_initialize(name:)
where(provider:, uid:).first_or_initialize(name:)
end

def create_or_belong_family(invitation_token)
Expand Down

0 comments on commit d99ea2f

Please sign in to comment.