mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 10:38:50 +01:00
Show author names in problem and translation views
This commit is contained in:
@@ -2,6 +2,7 @@ class User < ApplicationRecord
|
||||
devise :omniauthable, :rememberable
|
||||
|
||||
enum role: [:user, :admin]
|
||||
has_many :translations, inverse_of: :author, dependent: :nullify
|
||||
|
||||
def self.from_omniauth(auth)
|
||||
where(provider: auth.provider, uid: auth.uid).first_or_create do |user|
|
||||
|
||||
Reference in New Issue
Block a user