mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 11:58:33 +08:00
DEV: Remove deprecated AuthProvider#enabled_setting= (#27081)
AuthProvider#enabled_setting=, used primarily by plugins, has been deprecated since version 2.9, in favour of Authenticator#enabled?. This PR confirms we are seeing no more usage and removes the method.
This commit is contained in:
@ -17,7 +17,6 @@ class Auth::AuthProvider
|
||||
frame_height
|
||||
pretty_name_setting
|
||||
title_setting
|
||||
enabled_setting
|
||||
full_screen_login
|
||||
full_screen_login_setting
|
||||
custom_url
|
||||
@ -28,14 +27,6 @@ class Auth::AuthProvider
|
||||
|
||||
attr_accessor(*auth_attributes)
|
||||
|
||||
def enabled_setting=(val)
|
||||
Discourse.deprecate(
|
||||
"(#{authenticator.name}) enabled_setting is deprecated. Please define authenticator.enabled? instead",
|
||||
drop_from: "2.9.0",
|
||||
)
|
||||
@enabled_setting = val
|
||||
end
|
||||
|
||||
def background_color=(val)
|
||||
Discourse.deprecate(
|
||||
"(#{authenticator.name}) background_color is no longer functional. Please use CSS instead",
|
||||
|
Reference in New Issue
Block a user