Fix "duplicate method" issue
Fixing http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/DuplicateMethods Readers are defined (https://github.com/discourse/discourse/blob/master/lib/single_sign_on.rb#L61), so only writers have to be generated.
This commit is contained in:
parent
4634935fe6
commit
54e4ff34f8
|
@ -8,7 +8,7 @@ class SingleSignOn
|
||||||
NONCE_EXPIRY_TIME = 10.minutes
|
NONCE_EXPIRY_TIME = 10.minutes
|
||||||
|
|
||||||
attr_accessor(*ACCESSORS)
|
attr_accessor(*ACCESSORS)
|
||||||
attr_accessor :sso_secret, :sso_url
|
attr_writer :sso_secret, :sso_url
|
||||||
|
|
||||||
def self.sso_secret
|
def self.sso_secret
|
||||||
raise RuntimeError, "sso_secret not implemented on class, be sure to set it on instance"
|
raise RuntimeError, "sso_secret not implemented on class, be sure to set it on instance"
|
||||||
|
|
Loading…
Reference in New Issue