From 0790310b01a32131a0c355982e07bc4dba58201b Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 19 Apr 2017 00:16:06 +0200 Subject: [PATCH] Indentation fixed --- app/models/user.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 2d38d4b..b7bb82e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -20,14 +20,14 @@ class User < ApplicationRecord def self.from_omniauth(auth) - where(provider: auth.provider, email: auth.info.email).first_or_create do |user| - user.provider = auth.provider - user.uid = auth.uid - user.email = auth.info.email - user.name = auth.info.name - # Set a random password - user.password = Devise.friendly_token[0,20] - end + where(provider: auth.provider, email: auth.info.email).first_or_create do |user| + user.provider = auth.provider + user.uid = auth.uid + user.email = auth.info.email + user.name = auth.info.name + # Set a random password + user.password = Devise.friendly_token[0,20] + end end end