Fix warnings about already initialized constants

This commit is contained in:
Gerhard Schlager 2018-08-09 17:29:02 +02:00
parent 2c4d7225d8
commit 6ddf7fcd1f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class Auth::FacebookAuthenticator < Auth::Authenticator
AVATAR_SIZE = 480
AVATAR_SIZE ||= 480
def name
"facebook"

View File

@ -211,7 +211,7 @@ module Discourse
end
end
BUILTIN_AUTH = [
BUILTIN_AUTH ||= [
Auth::AuthProvider.new(authenticator: Auth::FacebookAuthenticator.new, frame_width: 580, frame_height: 400),
Auth::AuthProvider.new(authenticator: Auth::GoogleOAuth2Authenticator.new, frame_width: 850, frame_height: 500),
Auth::AuthProvider.new(authenticator: Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", 'enable_yahoo_logins', trusted: true)),