mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-08 21:07:08 +10:00
code improvment
This commit is contained in:
+1
-1
@@ -77,8 +77,8 @@ class User < ActiveRecord::Base
|
||||
email: email ? email : "#{uid}-#{provider}@librme.com",
|
||||
password: Devise.friendly_token[0, 20]
|
||||
)
|
||||
user.save!
|
||||
user.create_avatar file: URI.parse(avatar) if avatar.present?
|
||||
user.save!
|
||||
user
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user