remove duplicate instance methods sso_secret and sso_url

This commit is contained in:
Ana Nunes da Silva
2024-04-08 16:17:14 +01:00
parent f4cc5d5917
commit e7dbb56b2e
2 changed files with 1 additions and 6 deletions

View File

@@ -23,11 +23,6 @@ Lint/ConstantDefinitionInBlock:
- 'spec/validators/date_time_string_validator_spec.rb'
- 'spec/validators/integer_array_validator_spec.rb'
# Offense count: 2
Lint/DuplicateMethods:
Exclude:
- 'lib/discourse/single_sign_on.rb'
# Offense count: 16
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:

View File

@@ -12,7 +12,7 @@ module Discourse
:suppress_welcome_message].freeze
NONCE_EXPIRY_TIME = 10.minutes
attr_accessor(*ACCESSORS, :sso_secret, :sso_url)
attr_accessor(*ACCESSORS)
def self.sso_secret
raise "sso_secret not implemented on class, be sure to set it on instance"