remove some warnings with already declared constants
This commit is contained in:
parent
94a0d43f31
commit
a916f6b0c8
|
@ -6,12 +6,12 @@ class GlobalSetting
|
|||
end
|
||||
end
|
||||
|
||||
VALID_SECRET_KEY = /^[0-9a-f]{128}$/
|
||||
VALID_SECRET_KEY ||= /^[0-9a-f]{128}$/
|
||||
# this is named SECRET_TOKEN as opposed to SECRET_KEY_BASE
|
||||
# for legacy reasons
|
||||
REDIS_SECRET_KEY = 'SECRET_TOKEN'
|
||||
REDIS_SECRET_KEY ||= 'SECRET_TOKEN'
|
||||
|
||||
REDIS_VALIDATE_SECONDS = 30
|
||||
REDIS_VALIDATE_SECONDS ||= 30
|
||||
|
||||
# In Rails secret_key_base is used to encrypt the cookie store
|
||||
# the cookie store contains session data
|
||||
|
|
|
@ -223,7 +223,7 @@ class BadgeGranter
|
|||
{errors: e.message}
|
||||
end
|
||||
|
||||
MAX_ITEMS_FOR_DELTA = 200
|
||||
MAX_ITEMS_FOR_DELTA ||= 200
|
||||
def self.backfill(badge, opts=nil)
|
||||
return unless SiteSetting.enable_badges
|
||||
return unless badge.enabled
|
||||
|
|
Loading…
Reference in New Issue